Page 1 of 1

Copy folder with shortcuts - Paste Special: folder with source files of these shortcuts

Posted: 26 Nov 2024 08:10
by longfn
Copy shortcuts, paste special: the sources file of these shortcuts.

Copy folder (recursively all its content).
If this folder contains shortcuts, the program will paste special: the sources file of these shortcut.

Re: Copy folder with shortcuts - Paste Special: folder with source files of these shortcuts

Posted: 26 Nov 2024 13:06
by admin
Could be done, but not extremely useful.

Re: Copy folder with shortcuts - Paste Special: folder with source files of these shortcuts

Posted: 26 Nov 2024 18:56
by longfn
Thank you, admin!

I have a folder with many documents shortcuts. Each time I need to copy them to my usb drive, it takes a lot of time to trace back all shortcuts.
Otherwise, we need to write and run Powershell script to do that.

If XYplorer implements this feature, it will be unique for a file management program on Windows (XYplorer) that supports this function.

I look forward to this feature in our coming updates.

Best regards.

Re: Copy folder with shortcuts - Paste Special: folder with source files of these shortcuts

Posted: 26 Nov 2024 19:09
by admin
I just saw that there is already another way to do it: Copy the target! (Right-click / Shortcut Target / Copy Shortcut Target Item)

Re: Copy folder with shortcuts - Paste Special: folder with source files of these shortcuts

Posted: 27 Nov 2024 00:37
by longfn
Could we do that for a folder recursively?
If a file, copy it.
If a shortcut, copy its source file.

I have a folder with multpie sub-folders, contains mix of files and shortcuts.

Thanks.

Re: Copy folder with shortcuts - Paste Special: folder with source files of these shortcuts

Posted: 27 Nov 2024 08:49
by admin
Not possible.

I think you should look into scripting instead. This is a rather exotic request that not many users would find useful.

To get you started, this will extract the link target from a selected LNK file:

Code: Select all

echo property("#LinkTarget", <curitem>);