@Cary-Korn said:
Unfortunately I have been unable to get any of the suggested solutions to work. I appreciate all the help. I didn’t think this would be so tough.
If you still want help, you are going to have to be more specific than that.
I tested my 2019-03-01T14:22:23.197Z post pretty thoroughly, and it worked exactly as I expected, passing chrome the full URL.
So, things we will need to know in order to keep helping you:
What browser do you want the URL to go to? Chrome? Firefox? Edge? IE? Something else?
If it’s Chrome or Firefox or , we will need the full path to your browser: you should be able to right click on your browser shortcut (or, if it’s active on your toolbar, right click on the icon, then again on the application name) to get you to the
Properties window, and copy the full path there.
If it’s Edge or IE, we’ll use the Microsoft-special notation for accessing those browsers. 'coz microsoft.
What is the exact version of Notepad++ you are using? Maybe your version is behaving differently than mine
it would be easiest if you went to the menu
? > Debug Info > Copy debug info into clipboard, and pasted the results here.
what exact sequence did you use when editing the shortcuts.xml?
exactly how long is your URL?
Did you try my exact circumstance from
my 2019-03-01T14:22:23.197Z post, or did you make changes to the URL before saving the batch file?
when I did that setup, making sure to save the setup, exit Notepad++, and then reload, it sent the really long URL to chrome properly
if you did try this, with the DUMMY URL, how exactly did it fail? (saying “didn’t work” is so generic as to be useless for helping us help you)
Did it not try to do anything? If so, where exactly did you save longurl.bat? Did you make the shortcuts.xml point to the real location of longurl.bat, or did you leave it pointing to my location for longurl.bat
Did it not open chrome?
Did it open chrome and try to go to the full dummy URL, and fail because it didn’t exist? This is what I would expect. In which case, I would say it didn’t fail, because that was the expected behavior.
Or did open chrome, but truncate the URL?
Once I made the batch file, it never truncated the URL on me.
I just tried 2138 characters in the dummy URL, plus the %1 search string in my batch file, which got replaced by $(CURRENT_WORD) from Notepad++, which was the exact text longurl, and chrome tried to open that page with the full 2144 character URL; because that machine doesn’t exist, chrome told me this site can't be reached, but it actually tried to go there, and the full URL was in the browser bar. If I change my batch file to
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://www.google.com/search?ie=UTF-8&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&sen=012&q=%1"
pause
so that it’s going to a valid website (google search), a total of 2106 characters plus the search string long, plus has a pause so that a cmd.exe window stays open until you hit enter or space or something, I saw the full URL in the cmd.exe window, I saw the full URL in chrome, and chrome went to the google-search for the word (longurl) that I highlighted when I launched
Do you see how detailed I was when trying to help you? If you are detailed when responding to our help, it will be easier for us to help you.
Please answer all five of those questions. Also, tell me an exact path where you are willing to save longurl.bat. With those five answers (detailed), and with an exact path, I should be able to craft something that works for you. I will start with the big long dummy google search, so that you know it’s really working… but after that, depending on how much info you give, I might be able to help you convert the URL closer toward what you want in real life.