Page 1 of 1

decoding questionmark in batch

Posted: 25 Mar 2019 03:02
by Elogia
I made a script which opens all .html files in folder and subfolder and appends "?clicktag=https://net.hr" to it, but the questionmark gets encoded, can anyone help?

Code: Select all

@ECHO ON 
SET RootDir=%cd%

CD /D "%RootDir%"
FOR /F "TOKENS=*" %%A IN ('DIR /S /B "index.html"') DO start chrome "%%~A?clicktag=https://net.hr"
GOTO EOF
Anyone has an idea?

Re: decoding questionmark in batch

Posted: 25 Mar 2019 15:27
by Squashman
Could please provide an example.

Re: decoding questionmark in batch

Posted: 26 Mar 2019 01:21
by Elogia
So if i start the script in a folder, i want it to open every index.html file and append "?clicktag=https://net.hr", so it would look like "C:/intel/Document.html?clicktag=https://net.hr" but instead it appends "%3Fclicktag=https://net.hr"
do you know how to push so it does not encode the "?"

Re: decoding questionmark in batch

Posted: 26 Mar 2019 08:57
by Squashman

Re: decoding questionmark in batch

Posted: 26 Mar 2019 10:17
by Elogia
Squashman wrote:
26 Mar 2019 08:57
Looks like this will help you.

https://productforums.google.com/forum/ ... jsGuMPWDUJ
Wow, thank you very much :)

Re: decoding questionmark in batch

Posted: 26 Mar 2019 10:53
by Squashman
Elogia wrote:
26 Mar 2019 10:17
Squashman wrote:
26 Mar 2019 08:57
Looks like this will help you.

https://productforums.google.com/forum/ ... jsGuMPWDUJ
Wow, thank you very much :)
Thank Google for such a robust search engine. All I did was search for your problem. It was the second link in the search results.