Solved

how do i delete nested folders?

Posted on 2006-06-28
7
471 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Explanation of install files for Windows XP devices 3 94
Decrypting the Zepto Virus 21 612
Number of files limit per folder in XP? 12 74
Program tries to re-install when opening 6 62
If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

919 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

16 Experts available now in Live!

Get 1:1 Help Now