User Tools

Site Tools


batch_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
batch_files [2014/02/11 02:34] – created javapimpbatch_files [2023/08/18 18:15] (current) – external edit 127.0.0.1
Line 6: Line 6:
 for /r %%a in (%src%) do echo %%a for /r %%a in (%src%) do echo %%a
 </code> </code>
 +
 +====== Trim Extension from Filename ======
 +
 +<code dos>
 +set src=%1
 +
 +for /r %%a in (%src%) do echo %%~na
 +</code>
 +
 +<code dos>
 +echo %~n1
 +</code>
 +
 +===== Replace Extension =====
 +
 +<code dos>
 +set src=%1
 +
 +for /r %%a in (%src%) do echo %%~na.txt
 +</code>
 +
batch_files.1392086049.txt.gz · Last modified: 2023/08/18 18:15 (external edit)