So close! moved Documents and Settings by mistake

rireed3

New member
Local time
5:52 AM
Messages
3
I think I've read enough about junction points, but it hasn't explained why messing with them is so painful.

I just went from XP to Windows 7, and spotted right away that most of my data from XP Documents and Settings was in C:\Users -- actually all of it.

Since I didn't format the partition, all my old files were still there. I then discovered that they were unwritable because of XP permissions/ACLs, so I was glad I had backed them up.

I moved all the files from XP into c:\files.old, including unfortunately Documents and Settings. When I discovered my mistake, I tried to just move it back to C:\. Nothing doing. I can't remember if I discovered 'elevated command prompts' by this time. I was logged on as Administrator anyway, right?

After too many hours lost sleep trying to move and copy, I gave up and created a new locked down Documents and Settings junction point in C:\ using mklink /J. I used the advanced security settings from the original, now in files.old.

Now I've given up trying to delete the one in files.old. It was easy to rename it to something strange, but that won't stop scanning programs from using it, unless I lock it down, but I would much prefer that it's gone. I downloaded junction.exe from Microsoft, but no matter how I set the permissions in files.old or on the renamed junction point, I always get Access Denied from junction -d. I even tried the same thing after booting from the setup disc.

Anyone else make this silly mistake?

Thanks,
Richard
 
Last edited:

My Computer My Computer

At a glance

Windows 7Intel core2 duo 1.664 GB
Computer Manufacturer/Model Number
Dell/Inspiron 640m (1305)
OS
Windows 7
CPU
Intel core2 duo 1.66
Memory
4 GB
To delete windows.old.

Go to c drive

Right click

properties

Disc clean up

check include system files.

It may take 2 or 3 tries but they should be gone.

If that does not work we can try to get you permission.
 

My Computer My Computer

At a glance

Windows 10, Home Clean InstallIntel Core2 processsor Q8200(2.33Ghz 1333FSB)...6 gbATI Radeon 256MB HD3650
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Last edited by a moderator:

My Computer My Computer

At a glance

Windows 10, Home Clean InstallIntel Core2 processsor Q8200(2.33Ghz 1333FSB)...6 gbATI Radeon 256MB HD3650
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Many thanks, richc46, but still no joy. The thing really is in a directory I made called files.old, rather than Windows.old, which was populated by the install itself. I already just deleted Windows.old when I was sure I didn't need anything there anymore.

I find it a little stupid that the original junction point happily moved where I dragged it by mistake the first time, but wouldn't move back!

I also tried this link from the "take ownership" page:
Delete Undeletable Files in Windows Vista My Digital Life

That also left "Access is denied" from junction.exe. I'm beginning to wonder about junction.exe. Surely Microsoft isn't promoting ineffective software. I'm new to junction points, but I've read warnings not to use anything that might walk the target directory when attempting to delete the junction point itself.

I want to second the message in the "what i don't like about Windows 7" thread that said something like "can we have something that tells us on exactly 'what' "Access is denied" and why?"

Thanks anyway,
Richard
 

My Computer My Computer

At a glance

Windows 7Intel core2 duo 1.664 GB
Computer Manufacturer/Model Number
Dell/Inspiron 640m (1305)
OS
Windows 7
CPU
Intel core2 duo 1.66
Memory
4 GB

My Computer My Computer

At a glance

Windows 10, Home Clean InstallIntel Core2 processsor Q8200(2.33Ghz 1333FSB)...6 gbATI Radeon 256MB HD3650
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Success!

I'm not sure whether this could have been done without the hidden Administrator, but from the command prompt, I used the ATTRIB command:

ATTRIB /L xxxxdocsxxx

The funny name is what I had renamed this original junction point to.

/L is important so ATTRIB works on the the junction point rather than its target.

The RH attributes were set, so I just did ATTRIB /L -R -H xxxxdocsxxx

After that junction -d xxxxdocsxxx deleted the old junction point.

Very nearly back to normal.

Thanks again,
Richard
 

My Computer My Computer

At a glance

Windows 7Intel core2 duo 1.664 GB
Computer Manufacturer/Model Number
Dell/Inspiron 640m (1305)
OS
Windows 7
CPU
Intel core2 duo 1.66
Memory
4 GB
Great, I really am glad for you. As I think about it, I come to the conclusion that it was the combination of your ingenuity and the Hidden Administrator that made success possible. Enjoy the OS and the extra knowledge that you now have.

Good Luck, my friend.
 

My Computer My Computer

At a glance

Windows 10, Home Clean InstallIntel Core2 processsor Q8200(2.33Ghz 1333FSB)...6 gbATI Radeon 256MB HD3650
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell XPS 420
OS
Windows 10, Home Clean Install
CPU
Intel Core2 processsor Q8200(2.33Ghz 1333FSB) Quad Core Tech
Motherboard
Dell
Memory
6 gb
Graphics Card(s)
ATI Radeon 256MB HD3650
Sound Card
Intergrated 7.1 Channel Audio
Monitor(s) Displays
Dell SP2009W 20"
Hard Drives
640 GB Serial ATA Hard drive
Cooling
Fan
Keyboard
Dell USB Keyboard
Mouse
Dell Premium Optical USB
Internet Speed
DSL 2.85
Back
Top