Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

How can I send a string to an open WinXP command shell

I have an interpreter that, when launched, displays a Windows XP command shell, displays a prompt and processes string inputs. Instead of the normal use model of typing in this command window and hitting <enter> to provide commands to it, I'd like to be able to send strings to this command shell from within a program I'm writing and have them be executed. How would I do this?

Thanks for your time,
shad66
0
shadow66
Asked:
shadow66
  • 2
3 Solutions
 
Jaime OlivaresSoftware ArchitectCommented:
Maybe you can use this keystroke engine to "inject" strings:
http://www.codeproject.com/dialog/keystroke.asp

0
 
AlexFMCommented:
In managed C++ you can use SendKeys class.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now