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.