Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to write program to copy all data on flash drives when it plug into usb port.can it do using

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to write program to copy all data on flash drives when it plug into usb port.can it do using java
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you trying to write a virus??
 
Alok Kushwah
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. If you want to copy data as soon as you connect flash drive to system

- Read about Autorun in windows. Autorun.ini file can be at root where you can specify program to run.

[autorun]
OPEN=SAMPLE\AUTORUN\AUTORUN.EXE
ICON=SAMPLE\AUTORUN\WIN98CD.ICO


2. If you want copy all data from from flash drive you have to use file/direcory copy command

copy | xcopy etc you can also write your own program

By the way this is not the right forum to ask this question. Its for EJB and other JEE technologies. Whatever I suggested is my wild guess.




 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "General Computing" forum seems right for this question and not the "EJB" forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic