Mar 15, 2002 #1 sfriday IS-IT--Management Feb 23, 2002 211 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 May 12, 2000 1,317 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