DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: need to read from Dos screen Window

  1. #1
    Join Date
    Apr 2007
    Posts
    2

    Question need to read from Dos screen Window

    need to read from Dos screen Window:
    need some code to read form dos windows that already open in my
    station (XP)
    i want to read chars by position or read the all characters and
    manipolated in vb code.

    I used VB6

    Please help.
    BR Yuval

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    I don't know of any way to interact with an existing console window from VB. In all the examples I can find online, the VB program creates a new console window, with which it may then interact.

    If that approach is not acceptable, the best alternative may be to redirect the console applications' output to a file, which your VB app may then read.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Apr 2007
    Posts
    2

    thanks for your answer

    I have an application that work on dos , how can i output the screen to file ?

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    If the program sends its output to stdout (the console), you may use the DOS redirect operator to send the output to a file. For example, if the .EXE file name is program.exe, run the program like this:

    C:\> program.exe > d:\path\filename.txt

    The program's output will be sent to d:\path\filename.txt.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Close popup window and reload parent form
    By ankushbindra in forum ASP.NET
    Replies: 1
    Last Post: 11-28-2005, 04:50 PM
  2. Prevent a window from moving off the screen
    By Jeff in forum VB Classic
    Replies: 1
    Last Post: 03-26-2002, 03:49 PM
  3. How to get console screen window
    By William Zhang in forum Web
    Replies: 0
    Last Post: 02-13-2002, 12:43 PM
  4. How I hide Taskbar on window screen ?
    By Matty in forum VB Classic
    Replies: 2
    Last Post: 05-24-2000, 04:26 AM
  5. Reposition MDI Client window?
    By Noel Gallagher in forum VB Classic
    Replies: 0
    Last Post: 04-05-2000, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center