Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open NotePad

Status
Not open for further replies.

WintersMystic

Programmer
Aug 8, 2001
39
US
i would like to open notepad to give examples of code. how is this done in VBScript?

im VERY new to this, two days actualy :)
 
Presuming you mean VBScript and not VBScript in an ASP page:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%\notepad " & WScript.ScriptFullName

This opens the currently executing script in notepad. FYI - This example came straight from the Windows Script Host documentation. Jon Hawkins
 
yes i mean in VBScript. the server im on does not allow ASP, unless i have to set file permissions a certain way.

could you explain the workings of that example? and how i would use a button to do it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top