How can I double-click on a file in Windows Explorer to launch a
java app and have the java app read the file that I double-clicked?
I have created a batch file that looks like this:
java QuizCardReader
This java class is actually an enhanced version of the QuizCard app from Head First Java (Sierra and Bates). It reads input files containing question/answer pairs, and I have created some of these input files and given them an extension of ".qiz". I have also associated that extension with the batch file above, so when I double-click one of my ".qiz" files from Windows Explorer it runs the batch file and launches the QuizCard app.
What I would like is for the QuizCardReader class to open and load the ".qiz" file that I double-click. If there were a way to pass the path and filename as an arg to the class, that would do the trick.
Thanks in advance,
Tom