Search:

Type: Posts; User: Avatar19

Search: Search took 0.09 seconds.

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

    Ok cool, then as soon as I get my laptop back Ill do some experimenting, and ill report back with anything I discover!!
    Thanks Norm
  2. Re: Determining the location of the file that initiates an application

    Hey Norm, thanks for your help so far,
    my laptops screen died and is being repaired which is why I have been unable to reply till now

    Can I ask what does \"%1\"" actually do in the registry...
  3. Re: Determining the location of the file that initiates an application

    I am working with a java program, but its a java program that I have bundled into a exe using Launch4j, I can change it to point to my jar file though, what do you suggest?

    Thanks for your...
  4. Re: Determining the location of the file that initiates an application

    Ok cool, this is whats currently in that file directory



    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\cmi_auto_file]
    @=""

    [HKEY_CLASSES_ROOT\cmi_auto_file\shell]
  5. Re: Determining the location of the file that initiates an application

    Hi Norm, Ok I hope this is what you meant!
    I took the file association that I have made and am using for my application and I also took the registry entry from the same location as you had yours

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

    Ok, so iv looked around a bit through my registry, do you mean this entry, Iv attached a png

    2513


    I also looked through the FileExt list and there was no command line that I could see, I...
  7. Re: Determining the location of the file that initiates an application

    I'm not sure what you are asking, so I am just gonna Google a bit so I can give you an intelligent answer, ill reply shortly
  8. Re: Determining the location of the file that initiates an application

    Hi Norm,
    yes the string passed to main was empty, so im not sure how to get at the information, i.e. the name of the file?
    Other than editing how the file association table, is there another way...
  9. Re: Determining the location of the file that initiates an application

    Maybe I'm not understanding you, but the file-name doesn't get passed to the command line,
    can you perhaps give me a small example of what you mean?

    Thanks!
  10. Re: Determining the location of the file that initiates an application

    Yes, that is what I am asking, if we are both understanding each other correctly.
    So let me explain clearly, say my application "myApp.exe" is located at C:\Users\Michael\Desktop and I have set it...
  11. Re: Determining the location of the file that initiates an application

    Ok, so far I have found a good half solution, java has System.getProperty("user.dir") which gives me the working directory of whatever initiated running my program. So the only thing I need is to get...
  12. Re: Determining the location of the file that initiates an application

    Hi Greg, to clarify I am making a normal runnable jar file and then I am going to convert it into a .exe for my windows version just to make it neat on the platform.
    Onto the problem at hand, my...
  13. Determining the location of the file that initiates an application

    Hi,

    My question is, suppose I have an xml file say "myXml.xml" that can be stored in any directory on my PC and I set its default program (the one that will run when I double click myXml to...
Results 1 to 13 of 13