Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Re: Determining the location of the file that initiates an application

    The OS replaces the %1 with the value of the path to the file that was double clicked.
  2. Re: Determining the location of the file that initiates an application

    I have no idea what that .exe file does. I know that my jar files work.
  3. Re: Determining the location of the file that initiates an application

    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.
  4. Re: Determining the location of the file that initiates an application

    What is in the cmi_auto_file entry. That would be where the commandline for the .cmi file would be.
  5. Re: Determining the location of the file that initiates an application

    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...
  6. Re: Determining the location of the file that initiates an application

    What is the commandline that is now in the file association table in the registry that starts the execution of your program?
  7. Re: Determining the location of the file that initiates an application

    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...
  8. Re: Determining the location of the file that initiates an application

    The args from the command line are passed to the main() method in a String array.
  9. Re: Determining the location of the file that initiates an application

    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?
  10. Re: Determining the location of the file that initiates an application

    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...
Results 1 to 10 of 10