Jump to content

Custom Double Click


Guest teoryn
 Share

Recommended Posts

Guest teoryn

Hi everybody,

So basically, I want my computer when I double click (for example) abc123.class file to open a command line prompt, switch to the directory where abc123.class is located, and run "java abc123" (notice the .class is gone).

Thanks for the help,

Teoryn

Link to comment
Share on other sites

Ha, good luck..

One thing I can suggest is to make a .bat file

Open dos, go to the directory you want to have this file and type 'edit filename.bat' This will open a blank file to be edited.

I'm sorry I can't tell you what to put into this dos file, but google how to make .bat files and you may find something... :huh:

Link to comment
Share on other sites

You can set up .class files to open with a certian program...

Open an explorer window, go to Tools > Folder Options. Click File Types, and look for .class. If there, click it and click change to change the program it opens with. Navigate to the program you want to open it and select it. If it's not listed, click new and speicfy the appropriate parameters.

I don't think you can do it any other way.

What exactly are you doing?

Link to comment
Share on other sites

Guest teoryn

well, is it possible to associate the .class extension with a batch file, because it might be possible to have the batch file switch the directory where the file is and run "java prgmName"

edit:

I want to do this so I can quickly launch programs that I write in java.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy