This chapter is from the book
Running Script Files Directly
The easiest way to run a script from within Windows is to launch the .vbs or .js file directly:
- Locate the script file in Windows Explorer and then double-click the file.
- Open the Run dialog box, type the file's path and name, and then click OK.
- In Vista, if you stored the script file within your user profile folders, open the Start menu, type the name of the script file into the Search box, and then click the script file in the results.
Note, however, that these techniques don't work at the command prompt. For that, you need to use the CScript program described a bit later.