[AHK] redirecting Windows Explorer to XY

Discuss and share scripts and script files...
gb007
Posts: 12
Joined: 14 Nov 2018 00:35

Re: [AHK] redirecting Windows Explorer to XY

Post by gb007 » 11 Jul 2020 22:38

the correct line should be

Code: Select all

	StringReplace, path, path, file:
or

Code: Select all

	StringReplace, path, path, file://, //

autocart
Posts: 835
Joined: 26 Sep 2013 15:22

Re: [AHK] redirecting Windows Explorer to XY

Post by autocart » 11 Jul 2020 22:43

StringReplace, path, path, file: doesn't do anything? Where in the code did you add it?
And why do you think that StringReplace, path, path, file://, should work?

gb007
Posts: 12
Joined: 14 Nov 2018 00:35

Re: [AHK] redirecting Windows Explorer to XY

Post by gb007 » 11 Jul 2020 23:04

Code: Select all

StringReplace, path, path, file:///
doesn't do anything, this line is in your script
you can try to display the path variable before and after this line
you'll see by yourself
WE have file:// in the path so file:/// doesn't trigger the replace

Code: Select all

StringReplace, path, path, file:
or

Code: Select all

StringReplace, path, path, file://, //
are doing the trick
replace is triggered and file: is removed from the path

Post Reply