Does anyone out there know of a command similar to SendKeys in VB for use in VBScript? I am trying to open a Dos window from VBScript code and send it some commands to automate a service. If anyone has any tips, i would appreciate it.
Thanks
Printable View
Does anyone out there know of a command similar to SendKeys in VB for use in VBScript? I am trying to open a Dos window from VBScript code and send it some commands to automate a service. If anyone has any tips, i would appreciate it.
Thanks
Ahh, I see what you mean now :)
You don't need sendkeys, you can use the windows script host object model to send keys to dos, all using VBScript!
Code:dim objScripting
set objScripting = CreateObject("WScript.Shell")
objScripting.Run("myCommandLineHere")
set objScripting = nothing
Tom