Custom Datei Endung öffnen

WetWer

Mitglied
Ich habe eine Applikation mit der ich meine eigene Customfileendung bearbeien kann. Ich habe meine Anwendung bereits zu einer .exe konvertiert. Wenn ich jetzt jedoch auf eine Datei mit meiner Fileendung klicke öffnet sich das Programm ganz normal jedoch ohne den Inhalt der datei zu öffnen.
Was muss ich tun, dass ich diese anzeigen lassen kann? Ich habe bereits versucht einen konstruktor(File fileName) zu machen..
 
Laut http://stackoverflow.com/questions/...ustom-file-extension-with-java-app-in-windows
however, in this example, you give the register function of nsis the start command for your application, and then it adds %1 to it in the start command of the windows file association. so you should give it the start command

Kommt also darauf an, welchen EXE-Packager du genommen hast, je nachdem kann man das einstellen oder es ist automatisch so, dass der erste Parameter von deinem Programm mit dem Dateipfad gefüllt wird.
D.h. das args[] Array von deiner Main-Methode beinhaltet dann den Pfad. Schau mal nach, ob dort etwas drinsteht, wenn nicht ggf. nochmal beim Packager nachschauen.
 

Neue Themen


Zurück
Oben