Forum Discussion
Madhi
16 years agoContributor
Hey..you can try the sendkeys method in VBScript. I had used it in my scripts and it works almost everytime. I did not have command prompt cases though. You can try it.
set WshShell = Wscript.CreateObject.("Wscript.Shell")
WshShell.Run("cmd")
WshShell.Sendkeys("your run cmd")