Jun 7, 2006 #1 bobmori Programmer Joined Dec 6, 2004 Messages 11 Location US Can anyone tell me how to change the readonly property of a file using vb6
Jun 7, 2006 1 #2 gmmastros Programmer Joined Feb 15, 2005 Messages 14,912 Location US Straight from the help files... SetAttr Statement Example This example uses the SetAttr statement to set attributes for a file. SetAttr "TESTFILE", vbHidden ' Set hidden attribute. SetAttr "TESTFILE", vbHidden + vbReadOnly ' Set hidden and read-only ' attributes. Click to expand... To clear the read-only attibute... SetAttr "TESTFILE", vbNormal -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote
Straight from the help files... SetAttr Statement Example This example uses the SetAttr statement to set attributes for a file. SetAttr "TESTFILE", vbHidden ' Set hidden attribute. SetAttr "TESTFILE", vbHidden + vbReadOnly ' Set hidden and read-only ' attributes. Click to expand... To clear the read-only attibute... SetAttr "TESTFILE", vbNormal -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
Jun 7, 2006 Thread starter #3 bobmori Programmer Joined Dec 6, 2004 Messages 11 Location US Thank You That did what I needed. Upvote 0 Downvote
Jun 7, 2006 #4 gmmastros Programmer Joined Feb 15, 2005 Messages 14,912 Location US You're welcome. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote