) You can also
use script-specific tools such as the Visual Basic Editor or Microsoft Script Editor provided with
Microsoft Office, but not when working directly with Server Core. A number of third parties also
produce products that can help you create and even compile your script. Chapter 7 discusses a few
of these products and you??™ll find more online.
No matter what you do to create your script, however, it??™s useless unless you can run it. Windows
provides two interpreters??”applications that run scripts??”for you to use. The first, CScript, works
at the command line and the second, WScript, works from within Windows. Interestingly enough,
Server Core can execute scripts with WScript, but because you can??™t be sure how the script will interact
with the GUI, using CScript is always a better idea. The following sections describe both options.
164 CHAPTER 6
WORKING WITH SCRIPTS
Running Scripts with the CScript and WScript Utilities
Windows supports two methods of starting scripts. The CScript application works at the command
prompt, while the WScript application works from within the graphical user environment. Both
applications accomplish the same task??”they provide a means for interpreting a script file you create.
Pages:
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430