Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > How do you delete deeply nested files and directories?

Reply
Thread Tools Display Modes

How do you delete deeply nested files and directories?

 
 
Noble
Guest
Posts: n/a

 
      09-05-2007
Isn't this just grand!

Vista Home Basic's backup utility has alot to be desired. So, I went
on a mission to find a good free backup program. Well, I found one,
installed it, and it started creating numerous nested folders on my
hard drive. If I had not caught it in time I dunno what would have
happend. I think there are somewhere between 160-170 nested folders on
my drive now.

The question -- How do I remove them?

I have tried deleting them but I keep getting a message like, "The
source file name(s) are larger than is supported by the file system."

Not good!!

I tried using delete while holding down the shift key to bypass the
recycle bin and that did not work. I have tried third party programs
and explorer replacements and that does not work. I have went to the
DOS command prompt and tried, that does not work.

I googled the message and it appears this is something that can happen
since MS has a article on it. I tried all the steps in the article
(including creating a network share at the deepest point) and still no
luck.

I am going to have to re-format my machine and start over unless some
of you guru's here can offer any suggestions to help me out of this
pickle??

Thanks in advance,
Noble

 
Reply With Quote
 
 
 
 
Paul Randall
Guest
Posts: n/a

 
      09-05-2007
Hopefully someone else will come up with a better answer. While waiting,
you might try this:

1) Find the root folder of this nested mess and take ownership of it.
How to: http://support.microsoft.com/kb/308421

2) Open a command prompt as administrator.
Navigate to the parent folder of the root of the mess.

Run the RmDir command to delete the subfolder tree. Here's the syntax:
Rmdir (rd)Removes (that is, deletes) a directory.

Syntax
rmdir [Drive:]Path [/s] [/q]

rd [Drive:]Path [/s] [/q]

Parameters
[Drive:]Path
Specifies the location and name of the directory that you want to delete.
/s
Removes the specified directory and all subdirectories including any files.
Use /s to remove a tree.
/q
Runs rmdir in quiet mode. Deletes directories without confirmation.
/?
Displays help at the command prompt.

Note that this can be a very dangerous command if run to delete the wrong
path.

Let us know whether it works for you.

-Paul Randall

"Noble" <> wrote in message
news: oups.com...
> Isn't this just grand!
>
> Vista Home Basic's backup utility has alot to be desired. So, I went
> on a mission to find a good free backup program. Well, I found one,
> installed it, and it started creating numerous nested folders on my
> hard drive. If I had not caught it in time I dunno what would have
> happend. I think there are somewhere between 160-170 nested folders on
> my drive now.
>
> The question -- How do I remove them?
>
> I have tried deleting them but I keep getting a message like, "The
> source file name(s) are larger than is supported by the file system."
>
> Not good!!
>
> I tried using delete while holding down the shift key to bypass the
> recycle bin and that did not work. I have tried third party programs
> and explorer replacements and that does not work. I have went to the
> DOS command prompt and tried, that does not work.
>
> I googled the message and it appears this is something that can happen
> since MS has a article on it. I tried all the steps in the article
> (including creating a network share at the deepest point) and still no
> luck.
>
> I am going to have to re-format my machine and start over unless some
> of you guru's here can offer any suggestions to help me out of this
> pickle??
>
> Thanks in advance,
> Noble
>



 
Reply With Quote
 
dean-dean
Guest
Posts: n/a

 
      09-05-2007
Can you move the parent folder of the nested folders to a location that
would make the path as short as possible? For example, from
C:\Folder1\Folder2\Folder3\Folder4WithUnwantedSubF olders to
C:\Folder4WithUnwantedSubFolders, and then delete the folder
Folder4WithUnwantedSubFolders? You could also try renaming
Folder4WithUnwantedSubFolders to F4, for example, to shorten the number of
characters in the path, doing so for each subfolder parent until they are
deletable, for example, the above becoming C:\F1\F2\F3\F4....

"Noble" <> wrote in message
news: oups.com...
> Isn't this just grand!
>
> Vista Home Basic's backup utility has alot to be desired. So, I went
> on a mission to find a good free backup program. Well, I found one,
> installed it, and it started creating numerous nested folders on my
> hard drive. If I had not caught it in time I dunno what would have
> happend. I think there are somewhere between 160-170 nested folders on
> my drive now.
>
> The question -- How do I remove them?
>
> I have tried deleting them but I keep getting a message like, "The
> source file name(s) are larger than is supported by the file system."
>
> Not good!!
>
> I tried using delete while holding down the shift key to bypass the
> recycle bin and that did not work. I have tried third party programs
> and explorer replacements and that does not work. I have went to the
> DOS command prompt and tried, that does not work.
>
> I googled the message and it appears this is something that can happen
> since MS has a article on it. I tried all the steps in the article
> (including creating a network share at the deepest point) and still no
> luck.
>
> I am going to have to re-format my machine and start over unless some
> of you guru's here can offer any suggestions to help me out of this
> pickle??
>
> Thanks in advance,
> Noble
>


 
Reply With Quote
 
Noble
Guest
Posts: n/a

 
      09-05-2007
@Paul - I will try that. I had completely forgot about DELTREE. I use
to use it all the time in my MS-DOS days.

@Dean-Dean - I have actually been doing that. It works but there are
so darn many of them it's easy to get lost. I am hoping for a slick
and fast method if its all possible. I could be days doing the rename
thing because I first have to go as deep as I think I can and then I
create a network share to shorten the path and then I start renaming
and deleting. I spent about 2 hours doing this last night and I feel
like I did not get anywhere.

nb

On Sep 5, 10:01 am, "dean-dean" <dean-d...@discussions.microsoft.com>
wrote:
> Can you move the parent folder of the nested folders to a location that
> would make the path as short as possible? For example, from
> C:\Folder1\Folder2\Folder3\Folder4WithUnwantedSubF olders to
> C:\Folder4WithUnwantedSubFolders, and then delete the folder
> Folder4WithUnwantedSubFolders? You could also try renaming
> Folder4WithUnwantedSubFolders to F4, for example, to shorten the number of
> characters in the path, doing so for each subfolder parent until they are
> deletable, for example, the above becoming C:\F1\F2\F3\F4....
>
> "Noble" <NobleB...@gmail.com> wrote in message
>
> news: oups.com...
>
>
>
> > Isn't this just grand!

>
> > Vista Home Basic's backup utility has alot to be desired. So, I went
> > on a mission to find a good free backup program. Well, I found one,
> > installed it, and it started creating numerous nested folders on my
> > hard drive. If I had not caught it in time I dunno what would have
> > happend. I think there are somewhere between 160-170 nested folders on
> > my drive now.

>
> > The question -- How do I remove them?

>
> > I have tried deleting them but I keep getting a message like, "The
> > source file name(s) are larger than is supported by the file system."

>
> > Not good!!

>
> > I tried using delete while holding down the shift key to bypass the
> > recycle bin and that did not work. I have tried third party programs
> > and explorer replacements and that does not work. I have went to the
> > DOS command prompt and tried, that does not work.

>
> > I googled the message and it appears this is something that can happen
> > since MS has a article on it. I tried all the steps in the article
> > (including creating a network share at the deepest point) and still no
> > luck.

>
> > I am going to have to re-format my machine and start over unless some
> > of you guru's here can offer any suggestions to help me out of this
> > pickle??

>
> > Thanks in advance,
> > Noble- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
Noble
Guest
Posts: n/a

 
      09-06-2007
There were files in some of the directories so I could not use "RD" to
remove them. I also could not use "DELTREE" because I could not find
it on Vista Basic. I also went and downloaded a "XTREE" clone and it
would not even untangle the mess. So, I just broke down and backed up
the stuff I needed and reformatted my machine.

For those of you that are curious about what program caused me so much
grief:
http://sourceforge.net/projects/bueasy


Thanks for everyone's help in this matter.

nb

On Sep 5, 10:25 am, Noble <NobleB...@gmail.com> wrote:
> @Paul - I will try that. I had completely forgot about DELTREE. I use
> to use it all the time in my MS-DOS days.
>
> @Dean-Dean - I have actually been doing that. It works but there are
> so darn many of them it's easy to get lost. I am hoping for a slick
> and fast method if its all possible. I could be days doing the rename
> thing because I first have to go as deep as I think I can and then I
> create a network share to shorten the path and then I start renaming
> and deleting. I spent about 2 hours doing this last night and I feel
> like I did not get anywhere.
>
> nb
>
> On Sep 5, 10:01 am, "dean-dean" <dean-d...@discussions.microsoft.com>
> wrote:
>
>
>
> > Can you move the parent folder of the nested folders to a location that
> > would make the path as short as possible? For example, from
> > C:\Folder1\Folder2\Folder3\Folder4WithUnwantedSubF olders to
> > C:\Folder4WithUnwantedSubFolders, and then delete the folder
> > Folder4WithUnwantedSubFolders? You could also try renaming
> > Folder4WithUnwantedSubFolders to F4, for example, to shorten the number of
> > characters in the path, doing so for each subfolder parent until they are
> > deletable, for example, the above becoming C:\F1\F2\F3\F4....

>
> > "Noble" <NobleB...@gmail.com> wrote in message

>
> >news: roups.com...

>
> > > Isn't this just grand!

>
> > > Vista Home Basic's backup utility has alot to be desired. So, I went
> > > on a mission to find a good free backup program. Well, I found one,
> > > installed it, and it started creating numerous nested folders on my
> > > hard drive. If I had not caught it in time I dunno what would have
> > > happend. I think there are somewhere between 160-170 nested folders on
> > > my drive now.

>
> > > The question -- How do I remove them?

>
> > > I have tried deleting them but I keep getting a message like, "The
> > > source file name(s) are larger than is supported by the file system."

>
> > > Not good!!

>
> > > I tried using delete while holding down the shift key to bypass the
> > > recycle bin and that did not work. I have tried third party programs
> > > and explorer replacements and that does not work. I have went to the
> > > DOS command prompt and tried, that does not work.

>
> > > I googled the message and it appears this is something that can happen
> > > since MS has a article on it. I tried all the steps in the article
> > > (including creating a network share at the deepest point) and still no
> > > luck.

>
> > > I am going to have to re-format my machine and start over unless some
> > > of you guru's here can offer any suggestions to help me out of this
> > > pickle??

>
> > > Thanks in advance,
> > > Noble- Hide quoted text -

>
> > - Show quoted text -- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
Noble
Guest
Posts: n/a

 
      09-07-2007
For those of you that might be interested, I found an excellent
article on a message forum that tells you how you can use NTBackup on
a Vista machine. I have included below what you need to do.

You need to copy the following files from an XP install, they are all
in the "System32" folder under Windows:

ntbackup.exe
ntmsapi.dll
ntmsdba.dl
vss_ps.dll
vssadmin.exe
vssapi.dll
vssvc.exe

On your Vista machine you need to create a new folder. I called mine,
what else, "NTBackup". Place ALL of the files into this newly created
folder. There you go! You are all set.

Note: You will get a popup when starting NTBackup but it will still
work just fine. You can even associate the .BKF file with ntbackup.exe
to get the NTBackup icon to display on your backup files.

Also note if you use NTBackup to schedule a task you will need to make
sure that NTBACKUP.EXE is part of your path otherwise the job will not
work.


 
Reply With Quote
 
Casey MacPherson
Guest
Posts: n/a

 
      09-07-2007
Actually VISTA has backup facilities built in. You don't need to use
NTBackup from XP for this.

To get to this:
Start -> All Programs -> Accessories -> System Tools -> Backup Status and
Configuration


"Noble" <> wrote in message
news: ups.com...
> For those of you that might be interested, I found an excellent
> article on a message forum that tells you how you can use NTBackup on
> a Vista machine. I have included below what you need to do.
>
> You need to copy the following files from an XP install, they are all
> in the "System32" folder under Windows:
>
> ntbackup.exe
> ntmsapi.dll
> ntmsdba.dl
> vss_ps.dll
> vssadmin.exe
> vssapi.dll
> vssvc.exe
>
> On your Vista machine you need to create a new folder. I called mine,
> what else, "NTBackup". Place ALL of the files into this newly created
> folder. There you go! You are all set.
>
> Note: You will get a popup when starting NTBackup but it will still
> work just fine. You can even associate the .BKF file with ntbackup.exe
> to get the NTBackup icon to display on your backup files.
>
> Also note if you use NTBackup to schedule a task you will need to make
> sure that NTBACKUP.EXE is part of your path otherwise the job will not
> work.
>
>


 
Reply With Quote
 
maverickapollo
Guest
Posts: n/a

 
      06-28-2009


Easy way to fix this is with Robocopy.

Just create a empty directory, then mirror that to the problem
directory.

robocopy NewDir ProblemDir /MIR

This will sort out the issue.

Casey MacPherson;414884 Wrote:
> Actually VISTA has backup facilities built in. You don't need to use
> NTBackup from XP for this.
>
> To get to this:
> Start -> All Programs -> Accessories -> System Tools -> Backup Status
> and
> Configuration
>
>
> "Noble" <> wrote in message
> news: ups.com...
> > For those of you that might be interested, I found an excellent
> > article on a message forum that tells you how you can use NTBackup on
> > a Vista machine. I have included below what you need to do.
> >
> > You need to copy the following files from an XP install, they are all
> > in the "System32" folder under Windows:
> >
> > ntbackup.exe
> > ntmsapi.dll
> > ntmsdba.dl
> > vss_ps.dll
> > vssadmin.exe
> > vssapi.dll
> > vssvc.exe
> >
> > On your Vista machine you need to create a new folder. I called mine,
> > what else, "NTBackup". Place ALL of the files into this newly created
> > folder. There you go! You are all set.
> >
> > Note: You will get a popup when starting NTBackup but it will still
> > work just fine. You can even associate the .BKF file with

> ntbackup.exe
> > to get the NTBackup icon to display on your backup files.
> >
> > Also note if you use NTBackup to schedule a task you will need to

> make
> > sure that NTBACKUP.EXE is part of your path otherwise the job will

> not
> > work.
> >
> >



--
maverickapollo
Posted via http://www.vistaheads.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to directories and files Tom Parke Windows Vista Administration 1 11-12-2007 02:29 PM
DVD-RW displays CD files & directories but not DVD files & directo MikeD Windows Vista Hardware 15 11-09-2007 05:45 PM
Deleted files and directories still visible zzoott Windows Vista File Management 0 10-08-2007 06:22 PM
Can't delete update directories on data drive Rob Roy Windows Vista File Management 0 10-03-2007 09:06 PM
Read Only directories and files Martin Windows Vista General Discussion 6 05-23-2007 06:03 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59