User Tools

Site Tools


batch_files

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.txt · Last modified: 2023/08/18 18:15 by 127.0.0.1