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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set double-click on VBS files

Status
Not open for further replies.

omegabeta

Programmer
Aug 20, 2003
148
RO
How can I set the default action for VBS/VBE and JS/JSE to "Edit", so that such files will be opened in Notepad ?

Thanks in advance.
 
If you change the default action on script files to Edit instead of Run, you will no longer be able to run these scripts as designed.

That being said... In Windows Explorer, go to Tools -> Folder Options menu item. Click the File Types tab and once the list is populated, find type VBS (or JS) and click the Change button to change the default association to NotePad.

Hope this helps.

- Glen

Know thy data.
 
BuGlen is quite right in issuing his warning. If you do this you will need to execute your vbscripts with a command line such as "CSCRIPT.EXE MyScript.vbs" which can be a real pain in the neck.

I have found it helpful to simply add a Notepad shortcut to the SendTo folder. That way you can quickly right click the file and choose SendTo Notepad to edit.
 
Thnaks to all, but I've solve the problem. Using regedit I've changed the Open key so that the first two options after the right-click is used are: Open in Notepad, Execute Script.

All the best
 
You can also edit these settings via Explorer's "Folder Options" dialog, on the "File Types" tab.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top