docs:programming:batch_files:for

This is an old revision of the document!


FOR

  • when using variables in batch files, use <html>&#037;&#037;i instead of &#037;i</html>

remove_tmp_files.bat

@ECHO OFF
cd "C:\somedir"
FOR %%f in (*.*) do if %%~xf == .tmp del "%%f"
  • docs/programming/batch_files/for.1184956275.txt.gz
  • Last modified: 2008/08/03 00:25
  • (external edit)