</head> <body> <h1>DriveSpaceFree</h1> <p>Retrieves the free disk space of the drive which contains the specified path, in megabytes.</p> <pre class="Syntax"><span class="func">DriveSpaceFree</span>, OutputVar, Path</pre> <h2 id="Parameters">매개변수</h2> <dl> <dt>OutputVar</dt> <dd><p>The output variable in which to store the result, which is rounded down to the nearest whole number.</p></dd> <dt>Path</dt> <dd><p>Any path contained by the drive (might also work on UNC paths and mapped drives).</p></dd> </dl> <h2 id="Remarks">논평</h2> <p><em>OutputVar</em>는 메가바이트 단위로 디스크 여유 공간의 양이 설정됩니다 (가까운 메가바이트로 반내림됩니다).</p> <p>In general, <em>Path</em> 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.</p> <h2 id="Related">관련 항목</h2> <p><a href="Drive.htm">Drive</a>, <a href="DriveGet.htm">DriveGet</a></p> <h2 id="Examples">예제</h2> <div class="ex" id="ExBasic"> <p><a class="ex_number" href="#ExBasic"></a> Retrieves the free disk space of the C drive and stores it in <em>FreeSpace</em>.</p> <pre>DriveSpaceFree, FreeSpace, C:\</pre> </div> <div class="ex" id="ExPath"> <p><a class="ex_number" href="#ExPath"></a> Retrieves and reports the free disk space of the drive which contains <a href="../Variables.htm#MyDocuments">A_MyDocuments</a>.</p> <pre>DriveSpaceFree, FreeSpace, % A_MyDocuments MsgBox % FreeSpace " MB"</pre> </div> </body> </html>