sonoop Posted April 19, 2011 Author Posted April 19, 2011 (edited) code of batch file :rem check free space of the drivefreedisk.exe D: 20GB (the freedisk.exe only use minimum bytes).rem space of the drive D not enoughIF errorelevel 1 goto :error rem space of the drive D enough7z.exe C:\myapplication.7z -aoa -o"D:\":errorecho Your drive's space not enough, plz trying again!!!But the freedisk.exe is wrong, it's return wrong value. And i'm trying other way. (chkdsk, dir, fsutil,...) Do you resolve that? Edited April 19, 2011 by sonoop
dencorso Posted April 19, 2011 Posted April 19, 2011 FreeDisk.exe version 5.2.3790.0 can do what you want. The one you have is too old, so it just doesn't understand 59825229820 and truncates it, thus giving the wrong result you've got.
sonoop Posted April 19, 2011 Author Posted April 19, 2011 @all: thanks so much!!!I finish the checking with vb script.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now