Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm new to DOS batch files but help to do the following:
find any files under a certain size in a directory and move them to another directory..

@echo off setlocal set /p directory=Directory where the files are: set /p size=Critical size in bytes: set /p newdirectory=Where to put the smaller files: for %%f in ("%directory%\*") do if %%~zf lss %size% move "%%f" "%newdirectory%\"

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |