HI!

Can someone help me regarding my USB and a Java program. So I have created a Jar file where there is a login form. I have my USB that is partitioned in two. What I want to happen is before I open one of the partitions, my Login form will run. For example my usb has a Drive Z and a Drive Y, if I double click drive Y, my login form will appear. If password is not correct, then it will not be opened.

Please help. Thanks! :)

Regards,
Mars

Recommended Answers

All 2 Replies

Create Autorun.inf file , it will execute when ur drive got accessed. But for java you must have jdk kit.

I already created this.
Autorun.inf

[autorun]
open=myjava.jar
action=Run myjava Program
icon=myjava.jar
label=thesis

but it wont open my program. :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.