aspose file tools*
The moose likes General Computing and the fly likes How to write program to copy all data on flash drives when it plug into usb port.can it do using Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "How to write program to copy all data on flash drives when it plug into usb port.can it do using " Watch "How to write program to copy all data on flash drives when it plug into usb port.can it do using " New topic
Author

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

Joined: Nov 25, 2008
Posts: 1225
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

Joined: Aug 03, 2008
Posts: 9321
    
  17

are you trying to write a virus??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Alok Kushwah
Ranch Hand

Joined: Jul 10, 2007
Posts: 31

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

Joined: Jul 20, 2005
Posts: 10289
    
168

The "General Computing" forum seems right for this question and not the "EJB" forum.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to write program to copy all data on flash drives when it plug into usb port.can it do using