Move files in a bulk from one directory to another
posted 10 years ago
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.
MB<br />Sun Certified Programmer for Java2 Platform
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.