- Close Notepad++ if it’s open.
- Using a different text editor (i.e. regular Notepad) edit shortcuts.xml file located in:
- Open your VBScript file in Notepad++, try Ctrl+Enter to run it
- Optionally: in Notepad++ menu go to “Run > Modify shortcut/Delete Command”, there you can easily change a shortcut for the added Wscript command
Windows XP Path:
C:Documents and SettingsUSERApplication DataNotepad++
Vista/Windows 7 Path:
C:UsersUSERAppDataRoamingNotepad++
Find <UserDefinedCommands> section and add the following line:
<Command name="Wscript" Ctrl="yes" Alt="no" Shift="no" Key="13">c:WINDOWSsystem32wscript.exe "$(FULL_CURRENT_PATH)"</Command>
This will assign Ctrl+Enter shortcut to execute VBScript. Save and close file.
Find section and add the following line:
c:\WINDOWS\system32\wscript.exe “$(FULL_CURRENT_PATH)”
There is no “section” in the shortcuts.xml file. How do i make this work ?
LikeLike
I didn’t escape <Command> and <UserDefinedCommands> elements and WP just treated it as an HTML code, so my instructions looked unclear. Fixed! Thanks for bringing it up.
LikeLike