Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Thu Sep 13, 2007 12:55 am Post subject: Read CMD window not executed by VDS... |
|
|
Anyone know how to read to contents (or current line) from a command window that wasn't opened with VDS?
I'm running a third party script that occassionally uses Xcopy.exe
The problem is that sometimes it hangs when it doesn't know if the target is a file or directory and wants you to enter an "F = File" or "D = Directory". I thought about checking for the existence of a "C:\Windows\system32\xcopy.exe" window and then send the proper key but, I can't know the proper key without knowing the whole question.
Generaly, the script in question locks up on the file in which case the answer would be "F". The problem is that I don't want to continually send the "F" key to every xcopy.exe window that opens up.
Any ideas??? |
|