2

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

Burgi
  • 6,768
miki15
  • 227

3 Answers3

3

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
Nilpo
  • 227
0

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.

-1

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++