@echo off echo creating stuff rem last line expands to a file name rem the carrots let you write out parentheses rem need the double pound in a batch file del _files.avs for %%I in (*.avi) do ( echo findedit^("%%~nI.avi"^) ) >> "_files.avs"