Relative path (copy) similar to CTRL-P for absolute path

Features wanted...
Post Reply
gtm
Posts: 87
Joined: 01 May 2011 11:03

Relative path (copy) similar to CTRL-P for absolute path

Post by gtm »

It would be nice to have a CTRL+* where * is some other letter, that would copy to the clipboard the path relative to another path (assuming its on the same drive) that can be set. By default this can be the XYplorer.exe file.

This helps in filling the portable file associations for other portable apps.
And numerous other uses

smahesh555
Posts: 31
Joined: 04 Feb 2013 09:55

Re: Relative path (copy) similar to CTRL-P for absolute path

Post by smahesh555 »

Got a similar requirement and found this post.

Basically had to write a batch file to copy/move/delete some files that use relative paths.

Along with the many other "To clipboard" menu, if another option there to copy relative path from say a drop box of all parent directories would be helpful.

If any other method already there in XYPlorer, please let me know.

Just to make it clear a small eg.

d:\temp\test1.txt
d:\temp\test2.txt

Right click both files "To Clipboard" => Relative Path => A dialog like popup giving the the full parent tree, so the user can select either D: or "temp".

Say user selected temp, clipboard contents:

temp\test1.txt
temp\test2.txt

Thanks,
Mahesh S.

admin
Site Admin
Posts: 63413
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Relative path (copy) similar to CTRL-P for absolute path

Post by admin »

Hmm, not really convinced (both posts). Both can be achieved relatively easy by scripting.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Relative path (copy) similar to CTRL-P for absolute path

Post by Marco »

resolvepath() in "inverse" mode is the way.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Relative path (copy) similar to CTRL-P for absolute path

Post by TheQwerty »

Scripting solution now available!

Spent a little too long on that this morning! :lol:

gtm
Posts: 87
Joined: 01 May 2011 11:03

Re: Relative path (copy) similar to CTRL-P for absolute path

Post by gtm »

Thanks, TheQwerty.
Can you please put a readme. I see lot of downloads on it and I am sure more will in future. So one readme will help so many users.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Relative path (copy) similar to CTRL-P for absolute path

Post by TheQwerty »

gtm wrote:Thanks, TheQwerty.
Can you please put a readme. I see lot of downloads on it and I am sure more will in future. So one readme will help so many users.
What do you think should be said which isn't?

Post Reply