Mar 15, 2002 #1 sfriday IS-IT--Management Joined Feb 23, 2002 Messages 211 Location DE All, I am issuing a command as follows WSH.RUN("GPUPDATE /SYNC" This runs from a DOS window and then requires a Yes answer twice, how can I pipe a Y to respond. I tried Sendkey but does not work with DOS. Any ideas Steve
All, I am issuing a command as follows WSH.RUN("GPUPDATE /SYNC" This runs from a DOS window and then requires a Yes answer twice, how can I pipe a Y to respond. I tried Sendkey but does not work with DOS. Any ideas Steve
Mar 15, 2002 #2 jonscott8 Programmer Joined May 12, 2000 Messages 1,317 Location US SWAG, but if you're on NT/2K, try: Set oShell = CreateObject("WScript.Shell" oShell.Run "cmd /K gpupdate /SYNC & Y & Y",1,True Jon Hawkins Upvote 0 Downvote
SWAG, but if you're on NT/2K, try: Set oShell = CreateObject("WScript.Shell" oShell.Run "cmd /K gpupdate /SYNC & Y & Y",1,True Jon Hawkins