Run a Windows Scripting Host (WSH) script.
WSH provides a windows scripting environment with commands that are identical
across Win 95 - NT - XP.
WSH is available under Windows 95, and NT4 if Internet Explorer 4 (or above)
has been installed. WSH is installed by default on Windows 98, Windows Millenium,
Windows 2000 and XP.
You can also download WSH.
A silent install of WSH is possible using the command <installer.exe>
/q:a /r:n however it *must* be installed with Administrator rights (and the
reboot must also be done under an admin account). The download of WSH version
5.6 (as shipped with XP) fixes a few bugs and adds significantly to the features
available in earlier releases.
'cscript' runs entirely in the command line and is ideal for non-interactive
scripts.
'wscript' uses GUI widgets and so is prettier for things like user input.
Syntax cscript [script_name.vbs] [//host options...] [/script options] wscript [script_name.vbs] [//host options...] [/script options] Arguments: script_name.vbs : The pathname of a text file containing the VBS commands to be executed. You must include the extension (normally .vbs) hide startup logo //nologo Timeout script after nn seconds //T:nn Interactive mode //I or Batch mode //B Note: it's also possible to use javascript commands in a .js file
"Throw a lucky man in the sea, and he will come up with a fish in his
mouth" - Arab proverb