Home > Commands N-Z > Commands W

WAITFOR


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Synchronizes multiple computers across a network by using signals.


Syntax

WAITFOR /?

WAITFOR [/s computer [/u [domain\]user [/p [password]]]] /si signal_name

WAITFOR [/t timeout] signal_name


Parameters
signal_name (NT2003)
Specifies the signal to wait for or is sent. signal_name is not case-sensitive.
Signal_name cannot exceed 225 characters and cannot contain characters other than a-z, A-Z, 0-9, and ASCII characters in the range of 128-255.

Switches
/? (NT2003)
Displays help.
/p [password] (NT2003)
Specifies the password of the user account that is specified in /u.
/s computer (NT2003)
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. Applies to all files and folders specified in the command.
If used, the signal is sent only to the specified computer.
If omitted, the signal is broadcast to all computers within the same domain as the sending computer.
/si (NT2003)
Sends SignalName instead of waiting.
/t timeout (NT2003)
Specifies the number of seconds to wait. The default is indefinite.
/u [domain\]user (NT2003)
Runs the script with the permissions of the specified user account. The default is system permissions.

Related

none.


Notes

Only one instance of WAITFOR can wait for a given signal on a given computer. You can run multiple instances on a single computer, but each must wait for a different signal.

Computers can only receive signals if they are in the same domain as the computer sending the signal.


Examples

none.


Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NT2003

Last Updated: 2003/07/28
Direct corrections or suggestions to: Rick Lively 1