Solved

how do i delete nested folders?

Posted on 2006-06-28
7
475 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
networked printer 4 87
C Drive Read / Write 10 138
Compatiable modem 2 63
Security cameras working but files saving are corrupt 4 159
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

733 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