Draconian ShellExecute Error Code 2
-
Windows 10 and loaded version 8.5.7 64 bit today.
Glad to be here! Finally ditched Dreamweaver 2004 stepping up to Notepad++
Quickly received the eve- popular Code 2 running both Chrome and FirefoxNote: Have tried the known:
C:\Program Files (x86)\Notepad++ right click Notepad++.exe file then click properties > compatibility uncheck run program as administrator.
And am looking at this within my shortcuts.xml file.
Could someone tell if it looks right? Does Shift=“no” matter? Otherwise I see nothing.<Command name="Chrome" Ctrl="yes" Alt="yes" Shift="no" Key="71">"C:\Program Files\Google\Chrome\Application\chrome.exe"" $(FULL_CURRENT_PATH)"</Command> <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">"C:\Program Files\Mozilla Firefox\firefox.exe"" $(FULL_CURRENT_PATH)"</Command>
-
@Brad-F said in Draconian ShellExecute Error Code 2:
And am looking at this within my shortcuts.xml file.
Could someone tell if it looks right? Does Shift=“no” matter? Otherwise I see nothing.The
Shift="no"
means that the keycode 71 (G) is not shifted. SoCtrl="yes" Alt="yes" Shift="no" Key="71"
meansCtrl+Alt+G
whereasCtrl="yes" Alt="yes" Shift="yes" Key="71"
would have meantCtrl+Alt+Shift+G
.<Command name="Chrome" Ctrl="yes" Alt="yes" Shift="no" Key="71">"C:\Program Files\Google\Chrome\Application\chrome.exe"" $(FULL_CURRENT_PATH)"</Command> <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">"C:\Program Files\Mozilla Firefox\firefox.exe"" $(FULL_CURRENT_PATH)"</Command>
The
"'
s seem to be on the wrong side of the space. When running the command, you want the equivalent of"path\chrome.exe" "$(FULL_CURRENT_PATH)"
(quote space quote), but you have the equivalent of"path\chrome.exe"" $(FULL_CURRENT_PATH)"
(quote quote space) – so there is no space between the executable and the name of the file, and the file’s path is being interpreted as starting with a space. My guess is that if you fix it to the following, it will work:<Command name="Chrome" Ctrl="yes" Alt="yes" Shift="no" Key="71">"C:\Program Files\Google\Chrome\Application\chrome.exe" "$(FULL_CURRENT_PATH)"</Command> <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">"C:\Program Files\Mozilla Firefox\firefox.exe" "$(FULL_CURRENT_PATH)"</Command>
—
Unsolicited Advice #1: the View > View Current File In… menu has existed for years now for running the installed versions of Chrome, Firefox, and Edge (and even the horrendous IE). No need to duplicate the functionality in the Run menu, as long as you are not doing something weird (like installed Firefox/Chrome in non-standard locations, or with command-line options, neither of which you are doing, based on your pasted commands.)
Unsolicited Advice #2:
C:\Program Files (x86)\Notepad++
Why are you using 32-bit Notepad++ on a 64-bit system? There’s virtually no good reason for doing that in 2023. (Any plugin worth having, that I know about, has been transferred to 64bit years ago.) Unless you know why you need 32-bit, you should install the 64-bit Notepad++. (Future versions of Windows OS are unlikely to support 32-bit applications, so you need to transition apps sooner rather than later to make the transition to the updated OS seamless.)