@echo off copy %1 D:\node1\INPUT /y echo Executing calculation for %1. echo Starting at %time% Firefly820.exe -o %~n1.out D:\node1 D:\node2 D:\node3 D:\node4 -np 4 pushd D:\node1 ren PUNCH %~n1.pun del INPUT del DICTNRY.0000 if exist IRCDATA ren IRCDATA %~n1.irc if exist EFPIND del EFPIND if exist MOINTS del MOINTS if exist AOINTS del AOINTS if exist WORK16 del WORK16 if exist WORK15 del WORK15 popd echo Completed at %time%