Jump to content

Recommended Posts

Posted (edited)

code of batch file :


rem check free space of the drive
freedisk.exe D: 20GB (the freedisk.exe only use minimum bytes).

rem space of the drive D not enough
IF errorelevel 1 goto :error

rem space of the drive D enough
7z.exe C:\myapplication.7z -aoa -o"D:\"

:error
echo 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 by sonoop

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...