I copied the c:\users\[user name] folder onto a network drive. Now I can't delete the folder because it appears there are recursive junction points. How can I delete the folder?

I copied the c:\users[username] folder off a vista machine to a networked USB drive.  Now I can't delete the folder because it appears the application data folder is recursive and keeps pointing back to something.  If I drop to the command line, I can "cd' to into the applic~1 only so many times before it exceeds the max length for a path.  How do I get rid of this folder?  Both drives are NTFS.
ChrisMiller1967Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Glen KnightCommented:
Windows has a maximum path length of something like 260 characters, if you go through the tree and rename the first folder to 1 then the second to 2 etc thus reducing the length of the path you should be able to remove it.
0
ChrisMiller1967Author Commented:
demazter:  Thanks for the reply.  However, I am unable to rename the junction "Application Data" (applic~1).  It just appears that I when I "cd" to applic~1, it just resurses forever.  See the attached file for more info.
Example-1.doc
0
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

John GriffithConsultantCommented:
DelinvFile can delete it -  http://www.purgeie.com/delinv/index.htm

 
 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Glen KnightCommented:
I would definately try: RD foldername /s /q first before installing 3rd party software
0
Glen KnightCommented:
I would definately try: RD foldername /s /q first before installing 3rd party software
0
John GriffithConsultantCommented:
The re-direction of the folder (prev Junction) can go ~16 levels deep because of the backup method/ software used and will be > 255 char limit.  3rd party software is needed in my opinion.
0
Glen KnightCommented:
Apologies for the double post not quite sure what happened there!
0
ChrisMiller1967Author Commented:
Thanks for the suggestios.  I had already tried RD /s /q before creating this post, but it failed.  After several more attempts, I caved and just reformatted the drive.  I didn't get a chance to try DelinvFile as someone suggested (perhaps that would have worked).  Before I close this post, I thought I would mention that I did more research and found that you should never use robocopy without the the /xj (exclude junctions) parameter.  That seems to be what caused this in the first place.  After the reformat and ensuring I'm using /xj on robocopy, things appear to be normal again (no seemingly endless recursive junctions).
0
btaplinCommented:
Robocopy without /xj from Vista to USB HDD caused the same problem for me.

DelinvFile worked on most of the files but not all.

I'll probably have to reformat as well.

FYI,

btaplin
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.