I found a VBS script to check file sizes but came up with the same problem if you try and use numbers bigger than 2GB.
It is no assignment. It's just this batch program I wrote to transcode video automatically. I just need to do a disk space check at the beginning otherwise it will break down when the disk space is too low. I'm no programmer really. I call other programs in the batch file and use a load of error checking along the way. I'm pretty pleased how it's turned out so far considering all the complexity I've had to add.
I was hoping there was just some exe file I could download that could return the size of files in MB and maybe another for disk space so I can use them in my batch file.
For now I can get the file size like this...
set size=%~z1
set size=%size:~0,-6%
echo Size is... %size% million bytes
So will find out how many MB a file is more or less. It's real ugly but I can make is work good enough. I was just hoping there was a much better way of doing it.