@echo off :loop_commandline if \%1 == \ goto done_with_commandline del %1 shift goto loop_commandline :done_with_commandline