How to create "Send to "FOLDER" " similar to send to desktop shortcut?
Using DeskLink as an extension in the SendTo, it will send it TO THE DESKTOP. What a waste of a file extension that only does one thing.
A batch file is going to be needed here.
@echo off
:: For my testing purposes, change this to whatever you need
set targetfolder=d:\Temp
shortcut /f:"%targetfolder%\%~n1%~x1.lnk" /a:c /t:%1
- Download this shortcut utility. : http://optimumx.com/download/Shortcut.zip
- Copy the above code and paste into a blank text file.
- Change the default folder name (fully qualified, and no quotes, even if there are spaces)
- Save the above in a file with a filename you want, and an extension of .cmd (ie, filename.cmd)
Create a shortcut in your SendTo to this batch file. To locate the sendto folder, simply copy this to start>run and hit enter:
%APPDATA%\Microsoft\Windows\SendTo
- Send To the shortcut all you want. I've taken care of the issues with quoted names as well (and yes, there were some issues o_O).
- The first line turns echo off, so you don't see the magic.
- The third sets the fully qualified target folder. Technically, you could just replace the %targetfolder% with the default, but it's easier to see what needs to be changed later.
- I then manipulate my 1st argument, the fully qualified file name that I get, and strip the target file name down to the target folder, the file name and extension, and then add the .lnk extension. The target is of course the fully qualified file name. The /a:c creates it.
- If you don't like the black box showing, hit properties of the SendTo shortcut and just make it minimized.
- There really is no error checking so if there is another .lnk file with the same name, it will be overwritten. That is why I make sure I include the extension as well, just to make better differentiation.