Page 1 of 1

Send shortcut "link" of selected item to a specific folder

Posted: 12 May 2023 18:27
by DarKHawK
Hi,

I need a script to send a shortcut of the selected file/files to a specific folder.

This script creates a shortcut of the current selected file in the same folder:

Code: Select all

    foreach($file, "<get SelectedItemsPathNames |>") {
        if (exists($file) == 1) {
            new(getpathcomponent($file, "base"), "link", $file);
        }
    }
How do I modify it to make it create the shortcut in another folder?

Thanks.

Re: Send shortcut "link" of selected item to a specific folder

Posted: 12 May 2023 18:53
by highend

Code: Select all

new("D:\Temp\" . getpathcomponent($file, "base"), "link", $file);
?

Re: Send shortcut "link" of selected item to a specific folder

Posted: 12 May 2023 19:21
by DarKHawK
Thank you.