The utility won??™t allow you to combine a value of ??“1 with the /NOBREAK command
line switch since that would effectively lock the system.
/NOBREAK Prevents the utility from recognizing key presses. The TimeOut utility waits for the
specified time period before it exits.
148 CHAPTER 5 CREATING CMD AND BAT FILES
Using the WaitFor Utility
The WaitFor utility enables communication between processes. You can send a signal from one
application to another. In fact, you can use this feature for signaling between batch files. When
using this utility, you start the receiving application first and tell it to wait for the signal. The sender
then sends the signal when it??™s ready. This command uses the following syntax:
Sender Syntax:
WAITFOR [/S system [/U [domain\]user [/P [password]]]] /SI signal
Receiver Syntax:
WAITFOR [/T timeout] signal
The following list describes each of the command line arguments.
/S system Specifies the remote system that you want to check. In most cases, you??™ll also need
to supply the /U and the /P command line switches when using this switch.
/U [domain\]user Specifies the username on the remote system. This name may not match
the username on the local system.
Pages:
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398