if ive got a .exe with this code in the same folder as the avi's it works fine
Quote
for /f "usebackq delims=;" %%A in (`dir /b *sample*.avi`) do If %%~zA LSS 20971520 del "%%A"
however when i try and get a bit more inventive, and try the code below, all i get is windows cannot find the path
Quote
for %%A in ('dir "%directory%\*.avi"') do If %%~zA LSS 20971520 del "%%A"
any help would be more than appreciated
cheers
This post has been edited by Ruddzy: 15 March 2012 - 01:16 PM



Help
Back to top










