sonoop Posted April 19, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
dencorso Posted April 19, 2011 Share 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. Link to comment Share on other sites More sharing options...
sonoop Posted April 19, 2011 Author Share Posted April 19, 2011 @all: thanks so much!!!I finish the checking with vb script. Link to comment Share on other sites More sharing options...
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