Solved

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?

Posted on 2009-07-03
10
299 Views
Last Modified: 2012-05-07
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.
0
Comment
Question by:ChrisMiller1967
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 74

Expert Comment

by:Glen Knight
ID: 24775347
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
 

Author Comment

by:ChrisMiller1967
ID: 24775648
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
 
LVL 74

Expert Comment

by:Glen Knight
ID: 24776140
0
 
LVL 12

Accepted Solution

by:
John Griffith earned 125 total points
ID: 24776406
DelinvFile can delete it -  http://www.purgeie.com/delinv/index.htm

 
 
0
 
LVL 74

Expert Comment

by:Glen Knight
ID: 24776439
I would definately try: RD foldername /s /q first before installing 3rd party software
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 74

Expert Comment

by:Glen Knight
ID: 24776453
I would definately try: RD foldername /s /q first before installing 3rd party software
0
 
LVL 12

Expert Comment

by:John Griffith
ID: 24776484
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
 
LVL 74

Expert Comment

by:Glen Knight
ID: 24776490
Apologies for the double post not quite sure what happened there!
0
 

Author Comment

by:ChrisMiller1967
ID: 24995171
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
 
LVL 1

Expert Comment

by:btaplin
ID: 25101890
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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

707 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

19 Experts available now in Live!

Get 1:1 Help Now