David Sankovsky
asked on
Sending Echo Off through VBS Script
Hi Experts.
I'm using a VBS Script to invoke a runas command through CMD.
I got it working perfectly except for one little thing. I need the CMD Screen to be completely blank while working or better yet, not to be visible at all.
The VBS Script looks like this:
Is there a way to invoke it with @echo off or somehow make the cmd windows not to jump up.
Please keep in mind that creating a batch and invoking it using the VBS Script is NOT an option.
I'm using a VBS Script to invoke a runas command through CMD.
I got it working perfectly except for one little thing. I need the CMD Screen to be completely blank while working or better yet, not to be visible at all.
The VBS Script looks like this:
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("runas /user:mydomain\domain admin user ""Path With Spaces"""), 1, False
WScript.Sleep 100
objShell.Sendkeys "domain admin password~"
Is there a way to invoke it with @echo off or somehow make the cmd windows not to jump up.
Please keep in mind that creating a batch and invoking it using the VBS Script is NOT an option.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Piping the output into a non-existent output was great.
Starting it minimized made it look even sleeker
Thank you both!