Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file to copy X number of files into subfolder

Status
Not open for further replies.

bmacbmac

IS-IT--Management
Jan 26, 2006
392
US
Hello,

I am looking for a batch file or vb script to split out 14,000 files from one directory. I need move move 250 files at a time into sub folders. I doesn't matter which order the files are in I just need 250 files in each folder. The folders are already created. Anyone have a clue as to how I can accomplish this?

Thanks!

Brian
 
I don't do .NET, but in VB6 you can easily create an .exe that uses the FileSystem object to do this. Do you have any programming experience? I imagine there must be a DOS line command to do this as well, but don't know what it is.

Cogito eggo sum – I think, therefore I am a waffle.
 
no.. no programming experience. Just with batch files and a little vb to create .vbs scripts. Thanks for replying though!
 
Post in forum329. VB Script could do this very easily.

Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
 
you can do this in a bat file but it would require some real programming skills.. counting the files, capturing the directory names and walking the chain.. All without arrays !

i suggest you take a look at a programming lamguage.. like JAVA .. even fortran. The languages have the tools built in to make the job easier
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top