Windows shortcuts copy source
Posted: Tue May 22, 2012 5:06 pm
I have a folder with subfolders which contain LNK files (Windows shortcut files). These LNK files point to actual folders in another location which contain video and audio files. Basically I want to copy the source of each LNK file to the same subfolder on another server but not the actual LNK file. So for example my folder setup with the LNK files looks likeSource Folder vendor1 subfolder1 LNK1 LNK2 subfolder2 LNK1 LNK2 vendor2 subfolder1
LNK1
LNK2
subfolder2
LNK1
LNK2The destination would be the same meaning each vendor name would be the same and each subfolder would be the same. The only difference would be in the source where there is an LNK, the destination should have the actual folder copied to it. Keep in mind the name of the short actually contains the name of the folder just prefixed with shortcut to
LNK1
LNK2
subfolder2
LNK1
LNK2The destination would be the same meaning each vendor name would be the same and each subfolder would be the same. The only difference would be in the source where there is an LNK, the destination should have the actual folder copied to it. Keep in mind the name of the short actually contains the name of the folder just prefixed with shortcut to