I'm using ProEngineer which generates many report and log files which need to be deleted in order to tidy up the folder. The last line calls for a subroutine which tidies up the sequentially generated model files, we can ignore this for the moment, it will be good to get the body of the batch file to work first. I have run this without the last line in case that was the problem, it wasn't. As I said, this fully works in XP but not W7. tidy.bat CD "%1 %2 %3 %4 %5 %6 %7 %8 %9" echo y | del *.crc.* echo y | del *.log.* echo y | del *.m_p.* echo y | del *.ger.* echo y | del *.inf.* echo y | del *.lst.* echo y | del *.log echo y | del *.plt echo y | del *.idx echo y | del *.tst C:\Program Files\proeWildfire 4.0\bin\purge.bat