move files by size

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
joe
Posts: 35
Joined: 06 Sep 2017 07:56

move files by size

#1 Post by joe » 18 Dec 2017 09:00

hi

Back again with a small request

I have a list.txt file which has the size range of .log files
ie .. 10-100
100-1000
2000-10000

can someone help me with a batch script to sort these .log files as per the list
and move into a separate folder created as 10, 100, 2000 and so on

source c:\logs
dest E:\sorted

please help
thanx in advance..

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: move files by size

#2 Post by Squashman » 18 Dec 2017 10:12

Remember in math class back when you were a kid and you didn't put a label on your number to tell the teacher how many of what it was.

Post Reply