File association
How can I modify a file association to include a command line option/switch to the associated application? Specifically, I want to add "-jar" to the association of ".jar" files to java.exe. I want to be able to chage this:
C:\Program Files (x86)\Java\jre6\bin\java.exe filename.jar
to:
C:\Program Files (x86)\Java\jre6\bin\java.exe -jar filename.jar
This was real straight forward in XP but in 7 it appears to have been abstracted away. All I get displayed is the icon for java.exe and not the pathname for it.
April 11th, 2011 4:06pm
Hi,
You need to change the file association of this kind of file.
Please refer to the following link.
http://www.ehow.com/how_5702362_change-file-associations-windows-7.html
Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
April 13th, 2011 5:17am
Juke,
I don't think you really read my problem description thoroughly. I have already done what you suggested. The problem is that I cannot figure out how to textually or programmatically modify that file association to include a command line
argument or switch to the associated application. I need to add the command line argument "-jar". How do I do that?Randall Bowen
April 13th, 2011 10:54am
See the 'ftype' and 'assoc' commands.
Free Windows Admin Tool Kit Click here and download it now
April 13th, 2011 11:15am