I am very new to batch file scripting

Need help to create the batch file for finding the size and based on the condition the file shluld be deleted or moved to temp location.
Thanks
-Raj
Moderator: DosItHelp
Code: Select all
for /f "delims=" %%G in ('dir /a-d /b *.txt') do (
IF %%~zG GEQ 100000 (
del "%%G"
) else (
move "%%G" C:\temp
)
)