This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Delete a folder\Directory

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

Parents
  • Verified Answer

    0

    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)

Reply
  • Verified Answer

    0

    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)

Children
No Data