• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter SUNDAY EVENING. Using JScript to... > Executing Windows Commands

Executing Windows Commands

Okay, enough for shortcuts. Let’s look at how to execute Windows commands from within your JScripts. To do this, you will have to use the WshShell object’s Run() method. As you will see, using this method, you can create scripts that automate the execution of any Windows command or command-line utility.

Controlling Windows Services

Windows NT, XP, 2000, and 2003 provide much of their functionality in the form of services. A service is simply a software program that provides the operating system with a specific set of capabilities. For example, the Printer Spooler service handles all the work involved in printing print jobs. Likewise, the Plug and Play service is responsible for detecting and helping to install new hardware.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint