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: 2016/05/14 11:04 (external edit)