Start-Sleep


Suspend shell, script, or runspace activity for the specified period of time.

Snap-In: Microsoft.PowerShell.Utility

Syntax:

Start-Sleep

 [-Seconds] <Int32> [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] 

Start-Sleep -Milliseconds <Int32>

 [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] 

Description:

The start-sleep Cmdlet suspends shell, script, or runspace activity for the specified period of time. It can be useful in a script to wait for an operation to complete, or in a loop to wait a specific time and do an operation repeatedly. The -seconds parameter takes an integer that represents the time, in seconds, to suspend execution. The -milliseconds parameter takes an integer that represents the time, in milliseconds, to suspend execution.



Windows PowerShell. TFM
Internet Forensics
ISBN: 982131445
EAN: 2147483647
Year: 2004
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net