Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I change the default VB script editor in Windows? Is this possible?

share|improve this question
    
Options will vary slightly depending on the version of windows you are using. In XP and before, you can actually edit the context menu via explorer and create an Edit option (if it isn't already there) and then assign it to the editor of your choice. If Edit is there, it probably opens in Notepad by default. In Vista and later you will need to manually edit this in the registry (something like HKEY_CLASSES_ROOT/.vbs). I just don't know off-hand exactly what you need to add, but it is a folder structure that will allow you to specify different options and actions for those options. –  MaQleod Apr 2 '12 at 21:06

3 Answers 3

up vote 3 down vote accepted

It's stored in the registry under this key:

HKEY_CLASSES_ROOT\VBSFile\Shell\Edit\Command

Create or edit the default REG_EXPAND_SZ value. The default is to open in notepad.exe with the following command line.

"%SystemRoot%\System32\Notepad.exe" %1
share|improve this answer

I don't think there is any default VBScript editor in windows as it is editable in any Editor , i myself use Notepad++ for VB Scripting,

But If you really want to change the Default editor just Right-Click the vbs file , choose Open with -> Default Program , select the Editor you wanna use and tick mark the 'Always use the selected program to open this kind of File'

but doing this will execute the vbs file in an editor and it won't be executed as a normal VB Script.

share|improve this answer
1  
This isn't changing the default editor, this is changing the default application...and for a vbs file, this really isn't going to be the best option. –  MaQleod Apr 2 '12 at 20:59
    
If you revised your question to explain how to change the edit action for .vbs, it would be a good answer. –  Jeremy W Apr 2 '12 at 21:04

Nilpo is correct, and the string should be changed to

"C:\Program Files (x86)\Notepad++\Notepad++.exe" %1

to change the right-click "Edit" association to Notepad++

share|improve this answer
1  
Welcome to superuser, I don't see how this improves Nilpo's answer. He is using the system bundled notepad and you the freeware notepad++. But the method stays the same, or not? –  nixda Jun 27 '13 at 12:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.