Table of Contents

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