Use the show mode
command to display the current mode.
offline Sets the current mode to offline. In offline mode, which was new for Windows 2003,
the utility accumulates any commands you issue and executes them as a batch. Using this second
approach on remote servers can greatly enhance performance without any loss of functionality.
Use the show mode command to display the current mode.
pushd Pushes a context onto the NetSH stack. Earlier versions pushed context onto the system
stack by using the PushD command described in the ???Storing and Retrieving Directories with
the PushD and PopD Commands??? section of Chapter 9.
CREATING A BASIC SCRIPT 171
popd Removes a context from the NetSH stack. Earlier versions popped the context from the
system stack using the PopD command described in the ???Storing and Retrieving Directories with
the PushD and PopD Commands??? section of Chapter 9.
Creating a Basic Script
Scripts can make the command line significantly easier to automate and can improve the reliability
of command line tasks by helping you perform tasks in the same sequence every time. This section
shows how to create basic scripts in both VBScript and JavaScript so you can see the differences
between the two languages.
Pages:
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445