how to display path in addressbar with slash

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

how to display path in addressbar with slash

Post 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?

MBaas
Posts: 582
Joined: 15 Feb 2016 21:08

Re: how to display path in addressbar with slash

Post 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 /.
______________________________________________
Happy user ;-)

kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

Re: how to display path in addressbar with slash

Post by kotlmg »

purpose is same. code is not working sir.

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: how to display path in addressbar with slash

Post by highend »

copytext replace(<curpath>, "\", "/") . "/";
One of my scripts helped you out? Please donate via Paypal

kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

Re: how to display path in addressbar with slash

Post by kotlmg »

i am unable to paste the data.
please guide me.

kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

Re: how to display path in addressbar with slash

Post by kotlmg »

the script copytext replace(<curpath>, "\", "/") . "/"; is working for folders only but not folder contents.
thanks a lot for the script.

Post Reply