batch_files
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
batch_files [2014/02/11 02:34] – created javapimp | batch_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 | ||
</ | </ | ||
+ | |||
+ | ====== Trim Extension from Filename ====== | ||
+ | |||
+ | <code dos> | ||
+ | set src=%1 | ||
+ | |||
+ | for /r %%a in (%src%) do echo %%~na | ||
+ | </ | ||
+ | |||
+ | <code dos> | ||
+ | echo %~n1 | ||
+ | </ | ||
+ | |||
+ | ===== Replace Extension ===== | ||
+ | |||
+ | <code dos> | ||
+ | set src=%1 | ||
+ | |||
+ | for /r %%a in (%src%) do echo %%~na.txt | ||
+ | </ | ||
+ |
batch_files.1392086049.txt.gz · Last modified: 2023/08/18 18:15 (external edit)