batch files are generally pretty simple-minded things, not at all as powerful as *nix shell scripts. For more complicated tasks you would be better off writing a program in some other language, such as C or C++.
Ancient Dragon
Retired & Loving It
30,051 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
There should be an option to delete an entire tree, so you wouldn't need to recursively delete it.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
yes there is that option, but the way I understand it is that he only wants to delete selected files/folders, not all of them. Use "rd /s" command to remove all the files and directories in the current tree. warning: do not do this from root directory such as c:\
Ancient Dragon
Retired & Loving It
30,051 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343