I am forever creating/editing VB Scripts to make my job just that little bit easier, hey if a script can do what I can do then why not do it, means I can spend my time doing other thins at work (like writing blogs etc...). Any how I came across this decent free VBSEditor a few years ago, it is really handy and offers syntax highlighting and line numbering:The Actual Exe can be downloaded from here. I have found this Editor to be very useful.
The one thing that I found annoying was that I had to open the editor up first and then browse to the script location, I could not just right click and edit in in VBSEditor. Until now...
Create a Folder in C:\Program Files\ called VBSEditor, then copy VBSEditor.exe into that folder. Then, copy and paste the following into notepad and then save as VBSEditor.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VBSFile]
@="VBScript Script File"
"EditFlags"=dword:00000000
"BrowserFlags"=dword:00000008
[HKEY_CLASSES_ROOT\VBSFile\Shell]
@=""
[HKEY_CLASSES_ROOT\VBSFile\Shell\Edit_with_&VBSEditor]
@="Edit with &VBSEditor"
[HKEY_CLASSES_ROOT\VBSFile\Shell\Edit_with_&VBSEditor\command]
@="\"C:\\Program Files\\VBSEditor\\VBSEditor.exe\" \"%1\""
Once you have saved it as a reg file go to the location where you saved it and run it.
You can now right click on any VBS file and it will give you the option to Edit with VBSEditor.