Discussion Locked

Specialized item for the 'Send to' Menu

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am fairly new to Visual C++, but what I want to do is to add an option to the 'Send To' menu that appears when you right click on a file or folder. I want the option to create a shortcut of that item and then automatically place that shortcut into the 'My Documents' directory. Similiar to the 'Desktop (create shortcut)' option. I can add a folder manually to the 'Send To' in the file system, but doing it this way sends the whole file and not a shortcut. Is this possible, and if so howdo I go about it? Thanks.

5 replies

by timthetoolman

Hi,

Here is a document describing how you can create a shortcut from the command prompt. You need to add a component from the NT resources kit, though.

http://www.ntfaq.com/Articles/Index.cfm?ArticleID=13561

Once you've done that, write a simple .bat file to create the shortcut for %1 - ie the first parameter passed to the bat file which ends up being what you right clicked over and the second line would copy it to the "My Documents" Folder.

If you dont have access to the resource kit, then there is a replacement for shortcut.exe which can be found here...

http://www.jsiinc.com/SUBA/tip0400/rh0422.htm

(remove spaces from above URLs)

Cheers,
Tim.

This discussion is closed to new replies.