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 to the features available
in earlier releases.
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.
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
|
|