|
-
March 13th, 2001, 06:34 AM
#1
Remove write protection
Hi,
i need to remove write protection from about 14.000 files in a folder including the subfolders. Could anyone show me an easy and fast way to do this. I couldn´t figure it out myself.
Thanks in advance.
cu
Fraggle
-
March 13th, 2001, 08:20 AM
#2
Re: Remove write protection
Try to set Archive attrib
SetAttr "YOURFILE", vbArchive
Iouri Boutchkine
[email protected]
-
March 13th, 2001, 09:49 AM
#3
Re: Remove write protection
Good, Iouri. I am only sad I am already out of votes for today...
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
March 13th, 2001, 10:41 AM
#4
Re: Remove write protection
This will turn off the ReadOnly attribute of a file
private Sub Command2_Click()
Dim fn as string
fn = "C:\Junk.txt"
SetAttr fn, GetAttr(fn) And (&HFF - vbReadOnly)
End Sub
John G
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|