MSN Home  |  My MSN  |  Hotmail
Sign in to Windows Live ID Web Search:   
go to MSNGroups 
Groups Home  |  My Groups  |  Language  |  Help  
 
Windows-Scriptwindowsscript@groups.msn.com 
  
What's New
  Join Now
  Home  
  Windows XP  
  Getting Started  
  
  My First Script  
  
  Running Scripts  
  
  Logon Scripts  
  
  Learning VBScript  
  
  Script Editors  
  
  About Security  
  Advanced Stuff  
  FAQ  
  Downloads  
  Recommendations  
  MS Newsgroups  
  Upload  
  Old Homes  
  
  
  Tools  
 

 
Writing a script is easy. Lets start with the obligitory Hello World example.
Start Notepad and enter the following text -

Wscript.Echo "Hello World"

Save the file as hello.vbs (Note: Notepad will try and save as .txt so you may have to rename the file extension)

WSH provide 2 ways to execute scripts.

  1. WScript.exe - Runs the script in GUI window mode
  2. CSCript.exe - Runs the script in a DOS like shell window

By default, WSH associate WScript.exe with the scripting extensions (.vbs .vbe .js .jse .wsf) which means that you can double click your script file from the Windows Explorer which will give the following result...

 

To run the script in command line mode, start a DOS (CMD for NT) window and type the following command...

cscript c:/full path to your script file/YourFileName.vbs

Which should produce the following output...

That wasn't so hard, was it? Next we we look at more detailed options for running scripts.

 

 

 

Yes, there is something better than Notepad.
Get Primal Script NOW. 

 
Notice: Microsoft has no responsibility for the content featured in this group. Click here for more info.
  Try MSN Internet Software for FREE!
    MSN Home  |  My MSN  |  Hotmail  |  Search
Feedback  |  Help  
  ©2005 Microsoft Corporation. All rights reserved.  Legal  Advertise  MSN Privacy