• Post Reply Bookmark Topic Watch Topic
  • New Topic

Move files in a bulk from one directory to another  RSS feed

 
Mike Boota
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can I move all the files in one directory to another in a bulk. What is the fastest way to move files under one directory to another as there may be 1000+ files in a directory so trying to find out the fastest way to move all those to a different directory.

Thanks
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The fastest way to copy a file is probably (depending on the VM implementation, of course) like so. To bulk move thousands of files, the fastest way is to probably (never tried it, mind you) Runtime.exec() of your OS's copy/move command.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!