• Post Reply Bookmark Topic Watch Topic
  • New Topic

java app that asks for admin password when storage device is inserted  RSS feed

 
roshan sinha
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to automatically invoke a java program when a storage device is inserted
what i plan to do is making a java app that asks for admin password when storage device is inserted

steps according to me:-
1) keep the java code running in background like antivirus
2) Invoke the piece of code to ask for admin password when it detected any storage device
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there's a way to alert a Java process if a device is inserted, not unless you hook deep into the OS via native code first. What would the Java code do with the password after it's entered? Meaning, what is the underlying problem you're trying to solve?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!