Community
    • Login

    Draconian ShellExecute Error Code 2

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 304 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Brad F.B
      Brad F.
      last edited by Brad F.

      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 Firefox

      Note: 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">&quot;C:\Program Files\Google\Chrome\Application\chrome.exe&quot;&quot; $(FULL_CURRENT_PATH)&quot;</Command>
          <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot;&quot; $(FULL_CURRENT_PATH)&quot;</Command>
      
      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Brad F.
        last edited by

        @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. So Ctrl="yes" Alt="yes" Shift="no" Key="71" means Ctrl+Alt+G whereas Ctrl="yes" Alt="yes" Shift="yes" Key="71" would have meant Ctrl+Alt+Shift+G.

            <Command name="Chrome" Ctrl="yes" Alt="yes" Shift="no" Key="71">&quot;C:\Program Files\Google\Chrome\Application\chrome.exe&quot;&quot; $(FULL_CURRENT_PATH)&quot;</Command>
            <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot;&quot; $(FULL_CURRENT_PATH)&quot;</Command>
        

        The &quot'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">&quot;C:\Program Files\Google\Chrome\Application\chrome.exe&quot; &quot;$(FULL_CURRENT_PATH)&quot;</Command>
            <Command name="FF" Ctrl="yes" Alt="yes" Shift="no" Key="70">&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot; &quot;$(FULL_CURRENT_PATH)&quot;</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.)

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors