• Post Reply Bookmark Topic Watch Topic
  • New Topic

device link?  RSS feed

 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok i'm making an application that is basically a picture viewer..
but i want the program to be executed upon flashdrive "arrivals"

is this possible?
 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that JSR-80 is what you may be interested in. Unfortunately, it does not appear that this project has gotten much traction. See this article from July of 2006 to learn more about it.

The official site for JSR-80 (the javax.usb specification) is here., and there is an open source implementation project on sourceforge.net; its project page is here

Good luck!
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean that you want your program to be started when someone inserts a flash drive into an USB port?

Have a look at this program: Digital Image Mover - it's a small Java program that copies images from a memory card and you can install it in such a way that it starts automatically when you insert a memory card. The webpage has links to pages that explain how you can configure Windows or Mac OS so that the application starts when you insert a memory card. I don't know if it also works for USB drives...
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DIM XP Autorun

this above page describes how you can modify the autoplay on certain drives
Ex: I: J: K: (removable device drives).

I think this will work! I really appreciate the link for the DIM thing..

all i have to do now is set the autoplay/handler to my program when a certain drive recieves a removable device.

Thanks,


Justin
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!