Computing.Net > Forums > Disk Operating System > Controlling A DOS Program From Windows

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Controlling A DOS Program From Windows

Reply to Message Icon

Name: PeterRJ
Date: September 20, 2009 at 22:10:24 Pacific
OS: Windows 2000
Subcategory: General
Comment:

I would like to be able to 'send' keystrokes to a DOS program from within a Windows program. The windows program has the ability to send keystrokes to other Windows programs but not DOS.

Is there a way to control a DOS program by sending keystrokes? Thank you.



Sponsored Link
Ads by Google

Response Number 1
Name: charvie
Date: September 20, 2009 at 22:12:42 Pacific
Reply:

"type (text here)"
in batch files works for typing in dos


0

Response Number 2
Name: nbrane
Date: October 12, 2009 at 01:17:05 Pacific
Reply:

i think a lot depends on the "dos" program you wish to control. that information would narrow down the possibilities.
I have always used pipe-files for those pgms that observe
"read std-input"/"write std-output" redirection. sendkeys
will only send keys to the dos-box, and might not make
it to the intended target. things like games are completely
open to doubt. EDIT is kind of in between dos & windows,
so it might or might not respond. I decline to take time to test
all the options, but use VB to appactivate the window and
see what happens. best of luck.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Controlling A DOS Program From Windows

running dos programs from windows 98 www.computing.net/answers/dos/running-dos-programs-from-windows-98/4951.html

Printing from a dos program www.computing.net/answers/dos/printing-from-a-dos-program/14856.html

Adding an icon to an MS-DOS program www.computing.net/answers/dos/adding-an-icon-to-an-msdos-program/1140.html