Run Commands Issue



  • Still not working. Try for yourself.



  • @Chris-Hawryluk

    Try it yourself.

    Well, I did try it, before posting what I posted. With the imbalanced quotes, as you said it does nothing (which is sort of bad…some sort of error message might be better…). Once I balanced the quotes out, running the command opened my current editor file in Chrome. Not clear what is going wrong for you with the information given…



  • With or without Quotes I get this.
    http://files.enjin.com/106810/help/2017-03-02_14-06-35.png
    This is getting to be really frustrating to the point I might need to start looking for Alternative editors.
    That’s using this line.
    <Command name=“Chrome” Ctrl=“no” Alt=“no” Shift=“no” Key=“0”>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe “$(FULL_CURRENT_PATH)”</Command>



  • @Chris-Hawryluk

    Ah, okay, I see it now (that .png file makes it really obvious)…your double quote characters are not all the same (see the “a” with the “hat” on it where double quotes should be?). Suggest you make them all like the one before the C in C:\Program Files...…use copy and paste on that character…



  • Still no go. Just copy the hole “Command name” that works for you and i’ll try it. It makes it difficult to guess your steps.



  • @Chris-Hawryluk

    Okay–that’s a reasonable approach at this stage:

    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "$(FULL_CURRENT_PATH)"

    Of course I’m not positive what copy and paste of that could do to the double-quotes. :-)



  • Both Chrome and Chrome Portable now work showing the code.

    <Command name=“Chrome” Ctrl=“no” Alt=“no” Shift=“no” Key=“0”>“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” “$(FULL_CURRENT_PATH)”</Command>
    <Command name=“Chrome Portable” Ctrl=“no” Alt=“no” Shift=“no” Key=“0”>“C:\Users\Pauline\Desktop\Others\All Data\GoogleChromePortable\GoogleChromePortable.exe” “$(FULL_CURRENT_PATH)”</Command>

    Thank you for your time. It works great again. Now i can also add Opera to the run. :) Thanks. You made my day!



  • I have the same issue do we have video to see as an example because i am unable to understand it.
    Really really appreciate if you could show in steps please



  • First: Don’t hijack other threads. It won’t help you get an answer here any faster, and it is considered exceedingly rude (and thus would likely influence many potential responders to not give you an answer).

    Second: the contributors to this forum are not paid support, and are in no way obligated to get you your “pizza in 30 minutes or less”. We are fellow users of Notepad++ who volunteer our own time to help other users. It is quite possible for a question to take minutes, hours, or even a day or more to get a response, depending on the topic, how busy people are, how polite you were, etc.

    Third: If you’ve “stopped working” as you claim in the hijacked thread, you’ve made a poor choice. If you were editing your source code using plane-jane notepad.exe (or any other text editor without all the awesome features of Notepad++), you wouldn’t have an auto-launch feature. But you’d have this nice File > Open menu (or equivalent) from Chrome, Firefox, Internet Explorer, Edge, or any other browser I’ve ever seen, which would allow you manually open up your local webpage with only a couple more clicks that running it from Notepad++'s Run > Launch in Chrome would do for you. And then use the browser’s refresh button to reload after you make a change and hit SAVE in Notepad++.

    Fourth: this thread already pretty-well describes what you need to do to get it to work in Notepad++. I don’t see how a video would help.

    However, in a spirit of education, I will summarize the steps for you:

    • Edit shortcuts.xml: it will either be in %AppData%\Notepad++ or in your program’s install or portable directory (same folder as notepad++.exe)

    • place the lines that DestructiveBurn listed in your shortcuts.xml, except use ASCII quotes, not unicode smart-quotes.

      <Command name="Chrome" Ctrl="no" Alt="no" Shift="no" Key="0">"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "$(FULL_CURRENT_PATH)"</Command>
      <Command name="Chrome Portable" Ctrl="no" Alt="no" Shift="no" Key="0">"C:\Users\Pauline\Desktop\Others\All Data\GoogleChromePortable\GoogleChromePortable.exe" "$(FULL_CURRENT_PATH)"</Command>
      
      • Those rows replace the existing “Launch in Chrome” shortcut

      • The specific paths given ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" or "C:\Users\Pauline\Desktop\Others\All Data\GoogleChromePortable\GoogleChromePortable.exe") need to be updated to the appropriate path to chrome.exe on your system.

      • If you are only using a standard installation of Chrome, not a portable edition, you don’t need the “Chrome Portable” row

    • Save shortcuts.xml

    • Exit Notepad++

      • the edited shortcuts.xml will not take effect unless you exit and reload
    • Reload Notepad++



  • Thank you.


Log in to reply