tags:

views:

188

answers:

2

Hi all I thought I would never use dos again.I wrong I was/am.

I am trying to delete a folder with this structure "MyFolder" AnotherFolder AnotherFolder Folder1 Folder2 Folder21 etc...

I do this get the cmd prompt go to my folder cd MyFolder type attrib -R - A -S -H C:\MyFolder (remove all attributes eg readonly etc..) del myfolder

but this does not cut it.

Any ideas what I am doing wrong? I want to remove all attribute restrictions on folder and subfolders and delete Any suggestions thanks a lot

+3  A: 

Use RMDIR /S /Q instead

Michael Bray
that did it no fuss around .cool thanks
A: 

Is deltree still around?

Nick
I think that was a separate utility, not provided as part of default windows install... at least it ins't on my XP box.
Michael Bray
MS-DOS circa version 6.x had the DELTREE.EXE utility included with it. There had been numerous shareware and free utilities with various names which had been available long before then. My preferred approach, back when I used MS-DOS, was to install the 4DOS alternative to the COMAND.COM shell. This provided additional options to the built-in DEL command as well as [Tab] completion, command history and editing, and color-enhanced directory listings among many other features. There was also a 4NT shell as an alternative to the NT/XP CMD.EXE (I'd moved on to Linux long before needing that).
Jim Dennis
4dos was awesome (in the day)... I used it too.
Michael Bray