Waitfor Command In Windows Server 2008

In this article I am going to explain about Waitfor Command in Windows Server 2008 operating system and also explain it's related syntax.
  • 1482

Introduction

It is used to sends or waits for a signal on a system and it also synchronize computers across a network.

Syntax

waitfor [/s <Computer> [/u [<Domain>\]<User> [/p [<Password>]]]] /si <SignalName>
waitfor [/t <Timeout>] <SignalName>

 

Parameter Description
/s <Computer> It Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. This parameter applies to all files and folders specified in the command.
/u [<Domain>\]<User> In this Runs the script using the credentials of the specified user account. By default, waitfor uses the current user's credentials.
/p [<Password>] It specifies the password of the user account that is specified in the /u parameter.
/si It sends the specified signal across the network.
/t <Timeout> It specifies the number of seconds to wait for a signal. By default, waitfor waits indefinitely
<SignalName> It specifies the signal that waitfor waits for or sends. SignalName is not case-sensitive
/? It displays help at the command prompt.


Example

For wait until the "espresso\build007" signal is received, type:
 

waitfor espresso\build007

For wait 10 seconds for the "espresso\compile007" signal to be received before timing out, type:

waitfor espresso\build007

For manually activate the "espresso\build007" signal, type:

waitfor espresso\build007

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.