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

Discuss and share scripts and script files...
Post Reply
DarKHawK
Posts: 15
Joined: 25 Nov 2012 04:55

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

Post 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.

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

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

Post by highend »

Code: Select all

new("D:\Temp\" . getpathcomponent($file, "base"), "link", $file);
?
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

DarKHawK
Posts: 15
Joined: 25 Nov 2012 04:55

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

Post by DarKHawK »

Thank you.

Post Reply