Solved

how do i delete nested folders?

Posted on 2006-06-28
7
470 Views
Last Modified: 2012-08-14
a user has created a folder within a folder many times,
\\sr2\DT\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\New Folder\macros\New Folder

and now i am unable to delete any of the folders within that folder. Is there any tools or ways for me to delete these folders
0
Comment
Question by:exdos
  • 3
7 Comments
 
LVL 5

Expert Comment

by:NAORC
ID: 16999328
Sorry, i dont fully understand your question...

But from what i can gather, i would recommend moving the data you want to keep from each "new folder" up to the \\sr2\dt\ level and then deleting \\sr2\dt\new folder.  that will delete everything down the tree.  I dont know if its of any help.
0
 
LVL 32

Expert Comment

by:rsivanandan
ID: 16999885
Try 'Killbox' it would help you do it.

Cheers,
Rajesh
0
 
LVL 30

Expert Comment

by:callrs
ID: 17000804
You don't need any third party utility...
"The rmdir /s command deletes directories containing files and subdirectories. For more information about the rmdir command, see Rmdir"
www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dos_diffs.mspx   Microsoft Windows XP - New ways to do familiar tasks

See: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rmdir.mspx?mfr=true     Microsoft Windows XP - Rmdir (rd)
0
 
LVL 30

Accepted Solution

by:
callrs earned 250 total points
ID: 17000830
Here's how:
Start -> Run -> cmd
In the command prompt window that comes up, type this:

rmdir /s \\sr2\DT\New Folder

That should delete ALL folders, under & including "New Folder"
0
 
LVL 30

Expert Comment

by:callrs
ID: 17000886
It works...but in the tests I ran, it deletes folders in XPSp2 even if they contain a hidden file, contrary to what  MS states in the rmdir link above: "You cannot delete a directory that contains files, including hidden or system files. If you attempt to do so, the following message appears:   The directory not empty "
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now