Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding to the "Right Click" menu

Status
Not open for further replies.

jmrdaddy

Technical User
Jun 10, 2002
31
0
0
US
I hope I’m in the right forum. I want to add an item to the right click menu in Outlook and Explorer. I want to copy the selected text or picture or link or whatever and add it to a text file or word file automatically. Can anyone get me started.
 
Here's the code to add the "Command Prompt Here" to the right-click menu. Hope this helps get you started... at least with the part about adding it to the menu.

Set objShell = CreateObject("WScript.Shell")

objShell.RegWrite "HKCR\Folder\Shell\MenuText\Command\", "cmd.exe /k cd " & chr(34) & "%1" & chr(34)
objShell.RegWrite "HKCR\Folder\Shell\MenuText\", "Command Prompt Here"
 
This is fabulous! Thanks a bunch! This adds a menu item pointing to an executable. Is it any different for a sub in Outlook or Explorer?
 
you can use

cd /d

d: also change drive before change directory
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top