clivebuckwheat Posted July 29, 2012 Posted July 29, 2012 Set WshShell = WScript.CreateObject("WScript.Shell")WshShell.Run "c:\myprogram.exe" But How do I make it wait 30 minutes before running it?Thanks for any help you can offer it would be great.
Yzöwl Posted July 29, 2012 Posted July 29, 2012 You should be able to use Sleep.Set WshShell = CreateObject("WScript.Shell")WScript.Sleep 30 * 60000WshShell.Exec("C:\MyProgram.exe")Where 30 is the number of minutes you desire.
clivebuckwheat Posted July 29, 2012 Author Posted July 29, 2012 (edited) thank you,How does 30x60000 = 30 minutes, just trying to understand. Edited July 29, 2012 by clivebuckwheat
Yzöwl Posted July 29, 2012 Posted July 29, 2012 The sleep command uses milliseconds and there are 60000 milliseconds in one minute.
clivebuckwheat Posted July 30, 2012 Author Posted July 30, 2012 The sleep command uses milliseconds and there are 60000 milliseconds in one minute.Thank you sir
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now