Skip to main content

Is there a command to delete a folder\\directory with sequential files in it?

Is there a command to delete a folder\\directory with sequential files in it?

What about a SYSTEM command    "RMDIR /S /Q"

What if the directory contains files other than .TXT files (assuming that is how you have named your sequential files?)

Sometimes you may put your command(s) in a batch file EG:   MOVE "CMD.EXE START /Q/C DELETE-SEQ.BAT" TO W-COMMAND;  CALL C$SYSTEM USING W-COMMAND.  You can then pass the directory name in W-COMMAND and receive it in the batch file as a variable (%1)


Is there a command to delete a folder\\directory with sequential files in it?

Tested and worked!