11-30-2023, 04:59 AM
As for doing it in a DosBox-X specific way, you should really read their documentation and learn the old commands which they emulate.
https://github.com/joncampbell123/dosbox...d-Commands
Specifically scroll down and look at the DELTREE command:
https://github.com/joncampbell123/dosbox...d-Commands
Specifically scroll down and look at the DELTREE command:
Quote:DELTREE (external command)
Deletes a directory and all the subdirectories and files in it.
Usage: DELTREE [/Y] [drive:]path [[drive:]path[…]]
Note: This will delete the entire directory tree. Please use this command with caution.