1.

Solve : available diskspace?

Answer»

Hi,
is there a COMMAND in MS DOS that retrieves the available space of a disk drive?

This value I want to use in a batch file (login script).

Thank you for tipps.the closest thing i can find is the DIR command.

see it hereCode: [Select]for /f "tokens=1-3 delims= " %%F in ('dir /-c ^| find "bytes free"') do SET DRIVESPACE=%%H
This will retrieve the string, but you cannot use any value over 4 GB as a NUMERICAL variable because NT command interpreter is limited to 32 bits of precision.



Discussion

No Comment Found