User Tools

Site Tools


batch_files

This is an old revision of the document!


List Files in Directory

set src=%1
 
for /r %%a in (%src%) do echo %%a

Trim Extension from Filename

set src=%1
 
for /r %%a in (%src%) do echo %%~na
echo %~n1

Replace Extension

set src=%1
 
for /r %%a in (%src%) do echo %%~na.txt
batch_files.1392087239.txt.gz · Last modified: 2023/08/18 18:15 (external edit)