> I'm not sure how get PowerShell to wait for xx seconds before running the
> next line. Any help would be greatly appreciated. The start-sleep cmdlet should help:
PS > get-help start-sleep -examples
NAME
Start-Sleep
SYNOPSIS
Suspend shell, script, or runspace activity for the specified
period of time.
-------------------------- EXAMPLE 1 --------------------------
C:\PS>Start-Sleep -s 15
This command makes the shell sleep for 15 seconds.
-------------------------- EXAMPLE 2 --------------------------
C:\PS>Start-Sleep -m 500
This command makes the command shell sleep for 1/2 second (500
milliseconds).
Marco
--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp
PowerGadgets MVP
http://www.powergadgets.com/mvp
Blog:
http://marcoshaw.blogspot.com