@ECHO OFF IF "%1"=="" GOTO NoParam ECHO The following files will be deleted: DIR/W %1 ECHO . ECHO Press Ctrl-C to abort, or PAUSE ERASE %1 GOTO End :NoParam REM This is the message the internal DEL gives! ECHO Invalid number of parameters :End