Solved Find files equal or less than 10 mb

September 6, 2012 at 06:37:28
Specs: Windows XP
Hi profs ;)

i wanna a batch script to find files equal or less than 10 mb and listing them into a log file
thanks in advance :)


See More: Find files equal or less than 10 mb

Report •

#1
September 6, 2012 at 08:00:08
i wanna a batch script
You want to do what to a batch script? This line of thinking both confuses and excites me.

How To Ask Questions The Smart Way


Report •

#2
September 6, 2012 at 19:32:43
✔ Best Answer
@echo off>smallfils & setlocal
for /f %%a in ('dir /b /s') do (
if %%~za leq 10000000 >>smallfils echo %%a
)
:end
might work. not accounted for hidden or system files.

Report •

#3
September 7, 2012 at 04:02:47
Doesn't account for 10 MB being 10485760 bytes, either. :P

How To Ask Questions The Smart Way


Report •

Related Solutions

#4
September 8, 2012 at 08:03:52
thnx nbrane you are the man ;)

Report •

#5
September 8, 2012 at 11:48:39
thanks, be sure to follow Razor's advice if you want a true 10 meg: 10485760
instead of 10000000

Report •

#6
September 9, 2012 at 14:11:37
aha okk but it does not matter a lot ...thx at all :)

Report •

Ask Question