Page 1 of 1
how to display path in addressbar with slash
Posted: 14 Feb 2020 15:03
by kotlmg
hello sir,
at present xyplorer displays path in the addressbar as " C:\Program Files (x86)\The Kmplayer\Skins\"
i want it to display it as "C:/Program Files (x86)/The Kmplayer/Skins/"
is it possible?
Re: how to display path in addressbar with slash
Posted: 14 Feb 2020 16:24
by MBaas
Windows doesn't deal with "/" well, AFAIK. I guess you asked for this because you want to easily copy from the address bar to the clipboard so you paste it into other app?
Maybe my approach will help you, too: I added a user-button and assigned this script to it:
copy(regexreplace(get("curitem",),"\\","/"));
Copies current item (path or file) and replaces \ with /.
Re: how to display path in addressbar with slash
Posted: 14 Feb 2020 16:33
by kotlmg
purpose is same. code is not working sir.
Re: how to display path in addressbar with slash
Posted: 14 Feb 2020 16:39
by highend
copytext replace(<curpath>, "\", "/") . "/";
Re: how to display path in addressbar with slash
Posted: 14 Feb 2020 16:45
by kotlmg
i am unable to paste the data.
please guide me.
Re: how to display path in addressbar with slash
Posted: 14 Feb 2020 17:02
by kotlmg
the script copytext replace(<curpath>, "\", "/") . "/"; is working for folders only but not folder contents.
thanks a lot for the script.