:: filetest.bat @echo off if %1'==' echo usage is: %0 FILENAME.EXT && goto :eof if not exist %1 echo %1 was not found && goto :eof if %~z1 LSS 5 goto :0 if %~z1 EQU 5 goto :1 if %~z1 GTR 5 goto :1 goto :eof :0 echo %1 is size zero :1 echo %1 is greater than 5 bytes echo filesize is %~z1 bytes copy %1 c:\%1 echo Copied :: DONE
det er nu desværre ikke min, men den virker ;-) Lukker spørgsmålet
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.