CodingHow to trick NTFS file locks

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  funky (ISA)  
 To:  ALL
32498.1 
In case you already didn't know, I thought some of you might find this info useful...found it at another forum:

quote:
How to trick NTFS file locks when nothing else works:

I recently had a big problem with a huge amount of files that were locked in a read-only state.
No software on the internet solved my problem.
It was impossible to remove the read-only attribute on them.

Finally I came up with an idea:

Take a USB-disk, format it with FAT32 and copy the files.
Then use the attrib-command to remove attributes.

Code:

attrib -r -s -a -h /S /D <path>



Copy the files back to their original place.

Hope it can save someone elses valuable time.
I just spent 8 hours of troubleshooting.
0/0
 Reply   Quote More 

 From:  THERE IS NO GOD BUT (RENDLE)  
 To:  funky (ISA)     
32498.2 In reply to 32498.1 
How can you copy the files back to their original place if the originals are read-only?

0/0
 Reply   Quote More 

 From:  funky (ISA)  
 To:  THERE IS NO GOD BUT (RENDLE)     
32498.3 In reply to 32498.2 
Good question. I shall endeavor to find out what the author of the above has to say about it.
0/0
 Reply   Quote More 

 From:  funky (ISA)  
 To:  THERE IS NO GOD BUT (RENDLE)     
32498.4 In reply to 32498.2 
quote:
The lock was only stopping me modifying the files, not the location of the files.
So moving or copying them to the FAT32-partition was no problem.
With the Domain Admin account I was able to delete the original files and copy the ones on the FAT32-partition back.
0/0
 Reply   Quote More 

Reply to All    
 

1–4

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats