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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set File Associations Program Arguments 1

Status
Not open for further replies.

vanka25

Technical User
Jun 25, 2007
191
US
A bit of background: I'm running Vista Business with Outlook 2007. In Outlook 2003 it was possible to create a shortcut to an Exchange Public Folder item on the Desktop; you can still do this with Outlook 2007 but the file (.xnk) isn't associated with Outlook 2007 by default as a security measure. The work-around is to manually associate the file-type with Outlook - not too hard. The problem is that when opening this file Outlook 2007 must be run with some additional arguments (specifically: Outlook.exe /x "%1"); while I knew how to do this under XP, I cannot figure out how to do this under Vista. When I select the .xnk file-type in the Control Panel -> Default Programs -> Set Associations dialog and hit the Change Program button; it only allows me to select the program that I want to use, I cannot add any arguments.

My question is whether anyone knows how to add an program argument when setting file associations?
 
You got me on the right-track; after creating the file association, I went into regedit and then:

Computer -> HKEY_CLASSES_ROOT -> xnk -> shell -> open -> command

and changed the value to what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top