First post, by Malik
- Rank
- l33t
Currently, I'm toying around MS-DOS 3.3 in a Award 286/12 clone in 86Box.
Is there a way to create a batch script that is equivalent to using DELTREE command in verisons of DOS that do not come with that external command?
Basically, the batch file need to loop through every possible sub-directories, delete the contents in them, move up a level and delete that sub-directory and repeat the process upto the level of and including the parent directory.
Problem is I can't remember how to access unknown sub-directories automatically via a batch file, if there is a way.
FYI, I create my own batch files for creating a backup of Windows 3.x directory and restoring it. Also for moving whole directories around. (The MOVE command does not move directories to another location). I make use of both XCOPY and DELTREE in my batch files for this purpose (in my 486 with MS-DOS 6.22).
To keep the topic focused, we can keep the discussion to batch files scripting only. I can use DOS 6's DELTREE command in DOS 3.3. But wondering if I can program raw internal commands into a batch file to achieve this.
Any info is appreciated. Thanks.