Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to copy a flash drive

 
Wale Olajide
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know which Java class and method that can be called in order to copy the content of a flash drive(usb) without opening the flash drive. If possible also to know the prodecure on how to do it. I've tried some overloaded methods of copy() from the java.nio package. Thanks, I look forward to your respone.
 
Henry Wong
author
Marshal
Pie
Posts: 21216
81
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wale Olajide wrote:I want to know which Java class and method that can be called in order to copy the content of a flash drive(usb) without opening the flash drive. If possible also to know the prodecure on how to do it. I've tried some overloaded methods of copy() from the java.nio package. Thanks, I look forward to your respone.


Yeah, that should work -- for a single file. To get the whole directory, you need a loop, and code it to get all the files.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic