Jump to content

Recommended Posts

Posted


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.


Posted

You should be able to use Sleep.

Set WshShell = CreateObject("WScript.Shell")
WScript.Sleep 30 * 60000
WshShell.Exec("C:\MyProgram.exe")

Where 30 is the number of minutes you desire.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...