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
310 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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
 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…

809 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