Following is a list of WSH objects and its typical usage. I found it extremely useful ( courtesy MSDN)
| Object | What you can do with this object |
| · Set and retrieve command line arguments · Determine the name of the script file · Determine the host file name (wscript.exe or cscript.exe) · Determine the host version information · Create, connect to, and disconnect from COM objects · Sink events · Stop a script's execution programmatically · Output information to the default output device (for example, a dialog box or the command line) | |
| Access the entire set of command-line arguments | |
| Access the set of named command-line arguments | |
| Access the set of unnamed command-line arguments | |
| · Connect to and disconnect from network shares and network printers · Map and unmap network shares · Access information about the currently logged-on user | |
| Create a remote script process using the Controller method CreateScript() | |
| · Remotely administer computer systems on a computer network · Programmatically manipulate other programs/scripts | |
| Access the error information available when a remote script (a WshRemote object) terminates as a result of a script error | |
| · Run a program locally · Manipulate the contents of the registry · Create a shortcut · Access a system folder · Manipulate environment variables (such as WINDIR, PATH, or PROMPT) | |
| Programmatically create a shortcut | |
| Access any of the Windows Special Folders | |
| Programmatically create a shortcut to an Internet resource | |
| Access any of the environment variables (such as WINDIR, PATH, or PROMPT) | |
| Determine status and error information about a script run with Exec() Access the StdIn, StdOut, and |
