CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Dec 2003
    Posts
    5

    Lightbulb How do I send commands to dos exe?

    Does anyone know how to send commands to a exe file that is an old dos exe file?

    I have a program that I use for drainage calculations ktdid.exe. It is an old dos run exe file that is time consuming!!! I would like to use VB to open the file and then send commands to it to run it with the input I have already created. I know that I can use a shell command and I have no problem opening the program, but I can't get the program to recognize sendkeys, sendinput, keybd_event or anything. I am using Microsoft Windows 2000. Does anyone know of any limitations to sending commands to dos exe's? I am desparately in search of anyone that can figure out how to automate this program for me.

    Below is a link to a Kentucky state highway download for ktdid. Ktdid.exe is the file that opens the whole program. If someone can get the program to open and then send a command to get the program to select menu 7 or something I would love to see the code. If anyone is up to the challenge or knows some great advice I would appreciate it. Also attached is the code I have been trying to use to get the file to open and run.

    http://www.kytc.state.ky.us/design/s...tdid/ktdid.htm
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured