Click to See Complete Forum and Search --> : Remove write protection


Fraggle
March 13th, 2001, 05:34 AM
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

Iouri
March 13th, 2001, 07:20 AM
Try to set Archive attrib
SetAttr "YOURFILE", vbArchive

Iouri Boutchkine
iouri@hotsheet.com

Cimperiali
March 13th, 2001, 08:49 AM
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.

John G Duffy
March 13th, 2001, 09:41 AM
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