Retrieves the free disk space of the drive which contains the specified path, in megabytes.
DriveSpaceFree, OutputVar, Path
The output variable in which to store the result, which is rounded down to the nearest whole number.
Any path contained by the drive (might also work on UNC paths and mapped drives).
OutputVar는 메가바이트 단위로 디스크 여유 공간의 양이 설정됩니다 (가까운 메가바이트로 반내림됩니다).
In general, Path can be any path. Since NTFS supports mounted volumes and directory junctions, different paths with the same drive letter can produce different amounts of free space.
Retrieves the free disk space of the C drive and stores it in FreeSpace.
DriveSpaceFree, FreeSpace, C:\
Retrieves and reports the free disk space of the drive which contains A_MyDocuments.
DriveSpaceFree, FreeSpace, % A_MyDocuments MsgBox % FreeSpace " MB"