|I am trying to use a batch file to check a file size.|
I have found if %~z1 GTR 5000 pause
But I can't get it to work in my context.
I create a file \forums\testsize.jpg
I then tried to test its size (go figure) by
if %~z\forums\testsize.jpg GTR 10000 pause.
I have tried every combination of % " etc at either and both ends.
I have tried sending the filename to another batch file. and using %~z1
But it will only work if I actually drop a file onto the batch file.
Can anyone tell meif and how I can use %~z to check the file?
Thanks for any help