Jump to content

How to get freedisk space?


Recommended Posts

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
Link to comment
Share on other sites


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...