![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] Thread[>>]
Number : 411 Date : 2001-07-18 Author : Joseph Maddison Subject : Re: another project... Size(KB) : 1
> 1000 files? 1000 subdirectories? where does the 36 come from? Say I have 6,036 files. I would like to move (alphabetically on LFN) the first 1000 files moved into a new directory 0001, the next 2000 into 0002, etc. and the last 36 files into 0007. A similar method of moving files might be: for %%dir in (a b c d e ... 7 8 9) for %%file in (%%dir*) do xxcopy /rcy /i %%file .\a The 36 refers to the directories a-z (26) + 0-9 (10). This splits the 6,036 files into 36 subdirectories, a, b, c, d, etc. all the way z, plus 0, 1, 2... 9. Some would be not be created if there were no files that begain with 7. Other directories might have few files. If my distribution is really unlucky, I might have 6000 files that start with Q, which would render this operation mostly useless. I realize that the for command is actually getting the files in "directory order". That means that with for %%file in (*) do {something} that the files likely won't be in LFN order unless they've just been extracted from a WinZip file into an empty directory. So, it seems that my batch idea will only go so far and no further. Any suggestions would be most welcome. Thanks, Joseph Maddison Minneapolis, MN
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.