The OS replaces the %1 with the value of the path to the file that was double clicked.
Type: Posts; User: Norm
The OS replaces the %1 with the value of the path to the file that was double clicked.
I have no idea what that .exe file does. I know that my jar files work.
I thought you were working with a java program. The commandline in the post has a .exe in it. I have no idea what that .exe program will do with any parameters passed on a commandline.
What is in the cmi_auto_file entry. That would be where the commandline for the .cmi file would be.
Use the regedit program's export feature to create a file from a registry entry and then copy and paste that entry here. Here is an exported entry from my registry with a command line with a %1...
What is the commandline that is now in the file association table in the registry that starts the execution of your program?
Yes that is possible. It depends on the OS and how its file association table is setup. Was the String array passed to main() empty?
On my Windows7 system, I have the commandlines in the file...
The args from the command line are passed to the main() method in a String array.
Are you asking what file is being passed on the commandline to your program when the OS starts your program because the file was double clicked?
I think in Windows, when the OS starts a program to process a file that was doubled clicked, the commandline associated with that type file from the registry is filled in and executed. One of the...