|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Command Box
Hello am new to the group and Windows Scripting. In reading the beginning
information. It says to open a "Command Box" and type in the VBScript statement. What is the Command Box? How do access it? Thanks for the help Gene Gene wrote:
> Hello am new to the group and Windows Scripting. In reading the beginning I would call it a command prompt. Go to "Start", "Run", enter "cmd", and > information. It says to open a "Command Box" and type in the VBScript > statement. What is the Command Box? How do access it? > Thanks for the help > Gene click "OK". You get a black "command prompt" where you can enter commands like: cscript Example.vbs Then press Enter. This runs the program cscript.exe and passes to it the name of the VBScript file Example.vbs. The cscript host runs the script, executing the VBScript statements in the file Example.vbs. The above assumes that the file "Example.vbs" is in the current directory. At a command prompt you must navigate to the directory where the file "Example.vbs" is saved. You can use DOS commands like cd (change directory) to do this. Or, you can specify the path to the script in the command. For example at the command prompt you could enter: cscript c:\scripts\Example.vbs If you are not comfortable at a command prompt, you can often run VBScript programs by finding them in Windows Explorer and clicking on the *.vbs file to run it. I hope this helps. |
|||||||||||||||||||||||