I have a folder with around 80,000 files in it and would like to move them to 3000 files in each new folder.
Jump to content
Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.Create Account How it Works
Edited by tallin, 07 February 2008 - 07:51 PM.
mfiles.bat "C:\Test" 3000This will split all the files located in C:\Test into subdirectories of 3000 files each (C:\Test\moved0, C:\Test\moved1,...). It is important to put quotes around the path name if there is a space included, best to put it in for good measure.
I am afraid I don't completely understand what you are trying to do. Yes, it can be made to traverse subfolders. What total are you wanting to calculate? The number of files in a folder?
Btw, is it possible to make it search for subfolders, calculate total and move all files in to the Moved named folders too?
I use a folder f:\test, I copy the script to f: drive and start -> run -> mfiles.dat "f:\test" 3000
Can you tell me what the folder name was that contained the files and where you ran the script from? Also, what was the syntax of the script you ran?
Hmm, let say I have 5 sub folders with different amount of files, I would like to total them and move all into 3000 per folder? without the tree structure, just files total up and split the folder.
What total are you wanting to calculate? The number of files in a folder?
Edited by MaMister, 08 February 2008 - 06:19 PM.
0 members, 0 guests, 0 anonymous users
Community Forum Software by IP.Board
Licensed to: Geeks to Go, Inc.