Prev | Current Page 422 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

Newer versions of CScript and WScript replace
these switches with the //H switch. You??™ll also find the //R (reregister) and //Entrypoint switches
missing from WSH because script developers no longer need the functionality. Always use the
correct command line switches for the version of Windows and WSH installed on your machine.
You can work with WSH in either interactive or batch mode. Use batch mode when you need to
perform tasks that don??™t require user input. For example, you might want to run Scan Disk every
evening, but use different command line switches for it based on the day. You could use Task
Scheduler to accomplish this task, but using it in conjunction with a WSH script improves the
flexibility you get when running the task.
Another kind of batch processing might be to send log files to your supervisor or perhaps set up
a specific set of environment variables for a character-mode application based on the current user.
On the other hand, interactive mode requires user interaction. You??™d use it for tasks such as cleaning
the hard drive because you don??™t always know whether the user needs a particular file. Such a script
could ask the user a set of general questions, and then clean excess files from the hard drive based
on the user input.


Pages:
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434
gadżety reklamowe disco polo rehabilitacja w warszawie spodnie fitness podsłuchy