1.

Solve : Need help on CMD.. if your good enough?

Answer»

Im awful at CMD prompt, ok, basicly.. i need a cmd syntax that will ALLOW me to find a certain FILE type, under 10kb in size , then LOG that filename in WORD or notepad or whatever.. does anyone know how to do this or if its even possible?That kind of subject line isn't going to woo too many PEOPLE to help you.
untested. just wrote this off the top of my head.
Code: [Select]@echo off

Pushd "C:\Source Directory"
FOR /F "delims=" %%G IN ('dir /a-d /b') do (
IF %%~zG LSS 10240 echo %%~G>>"C:\logfiles\filesize.log"
)
popd



Discussion

No Comment Found