PowerShell Start-sleep

Source: Internet
Author: User

Pause Windows PowerShell Ten seconds:

Start-sleep –s Ten

Pause Script Ten seconds ( Ten , the milliseconds)

Start-sleep–m 10000

Grammar

start-sleep [- seconds ] < int > [< commonparameters >]

start-sleep - milliseconds < int > [< commonparameters >]

Detailed description

Start-sleepcmdletsmakeShell, Script, or the run space activity hangs for the specified time. You can use this command in a script to wait for the end of an operation, or wait for a specified time in the loop to continue iterating.

Parameters

- seconds < int >

Specifies the number of seconds the sleep source needs to sleep You can ignore this parameter name (- seconds ), You can also use this parameter abbreviation "-S"  

- milliseconds < int >

specify the number of milliseconds a sleep source needs to sleep . this parameter abbreviation "-M" .

< Public Parameters >

This command supports common parameters: -Verbose, -Debug, -ErrorAction, -errorvariable, and-outvariable. More Information, input, "Get-help about_commonparameters".

input type

Int32

If you need to provide multiple parameters for the command , . For example , "<parameter-name> < Value1>, <value2> " .

 

You can use start-sleep built-in alias "sleep" . need more information , view about_alias

English Original: http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/start-sleep.mspx

PowerShell Start-sleep

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.