</head> <body> <h1>FileRecycle</h1> <p>Sends a file or directory to the recycle bin if possible, or permanently deletes it.</p> <pre class="Syntax"><span class="func">FileRecycle</span>, FilePattern</pre> <h2 id="Parameters">매개변수</h2> <dl> <dt>FilePattern</dt> <dd><p>단일 파일의 이름 또는 "C:\Temp\*.tmp"와 같은 와일드카드 패턴. <em>FilePattern</em>은 절대 경로를 지정하지 않으면 <a href="../Variables.htm#WorkingDir">%A_WorkingDir%</a>에 있다고 간주됩니다.</p> <p>전체 디렉토리를 버리려면, 뒤에 역사선 없이 이름만 주면 됩니다.</p></dd> </dl> <h2 id="Error_Handling">에러 처리</h2> <p><span class="ver">[v1.1.04+]</span>: 이 명령어는 실패하면 예외를 던질 수 있습니다. 더 자세한 정보는 <a href="Catch.htm#RuntimeErrors">실행시간 에러</a>를 참조하십시오.</p> <p><a href="../misc/ErrorLevel.htm">ErrorLevel</a>은 문제가 있으면 1, 그렇지 않으면 0이 설정됩니다.</p> <h2 id="Remarks">논평</h2> <p><a href="http://msdn.microsoft.com/ko-kr/library/bb762164.aspx">SHFileOperation</a>이 실제 작업을 하는데 사용됩니다. 이 함수는 파일이 너무 커서 휴지통에 들어가지 않으면 영구히 지웁니다; <span class="ver">[v1.0.96]</span> 현재 이런 일이 일어나기 전에 경고를 보여줍니다.</p> <p>The file may be permanently deleted without warning if the file cannot be recycled for other reasons, such as:</p> <ul> <li>The file is on a removable drive.</li> <li>The Recycle Bin has been disabled, such as via the <code>NukeOnDelete</code> registry value.</li> </ul> <h2 id="Related">관련 항목</h2> <p><a href="FileRecycleEmpty.htm">FileRecycleEmpty</a>, <a href="FileDelete.htm">FileDelete</a>, <a href="FileCopy.htm">FileCopy</a>, <a href="FileMove.htm">FileMove</a></p> <h2 id="Examples">예제</h2> <div class="ex" id="ExBasic"> <p><a class="ex_number" href="#ExBasic"></a> Sends all .tmp files in a directory to the recycle bin if possible.</p> <pre>FileRecycle, C:\temp files\*.tmp</pre> </div> </body> </html>