As the shell command is asynchronous, put the command in a batch file and generate a flag file at completion so we can wait for it. Assumes hourglass is set prior to function entry.
The program to run
The folder in which to create the flag file
Stop waiting for return after TimeoutSecs seconds
Print a message if the shell times out (default=True)
Wait an additional number of milliseconds after the shell completes before returning. (to allow completeion and cleanup of the shell task)
ShellWithWait "C:\Program Files\SysInternals\du.exe", "", 1200