Batch Retrieving Source Files From Explorer Shortcuts

Hi, first-time listener, first-time caller.

I have a folder (say, D:\Shortcuts) containing shortcuts for many different files located all over my drive.

I want to share the source files but there are quite a lot of them and I don’t want to manually open the target of each shortcut to retrieve its source file. It would be messy and prone to error, not to mention time-consuming.

I don’t speak PowerShell but my intuition tells me there’s probably a simple script that can recursively scan through each shortcut in the folder, find its target path and copy its source file to a folder of my choosing (say D:\Source Copies).

Would anyone be willing to concoct this for me?

Helman,
Welcome to the forum. :wave:t4:

This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

We offer help with self written code you’ve got stuck with. So if you’re not willing to learn PowerShell you’d be better off in a forum where you can ask someone to do your job for you. Or if you think it’s worth it you may pay someone to do it for you.

Hi, thanks. Nice to be here.

Fair enough. I figured it was worth an ask!