The information that you type when you run a script by typing its name depends on which version of Windows you are running and on the method you use to run the script.
WSH Executable File | Windows Version | Include |
---|---|---|
Command prompt | Windows NT or 2000 | Specify the script name without the file extension. Example: myScript.
Note If you specify the WSH executable file name, you must also include the script's file extension. Example: |
Command prompt | Windows 9x or Millennium | Specify the script's file extension and precede the script name with the WSH executable filename.
Example: |
Run command from Open box | Windows NT, 2000, 9x, or Millennium | Specify the script's file extension. |
Running Scripts with WScript.exe | Running Scripts with CScript.exe | Drag and Drop Support