Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modifying File properties from vb6 1

Status
Not open for further replies.

bobmori

Programmer
Dec 6, 2004
11
US
Can anyone tell me how to change the readonly property of a file using vb6
 
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.

To clear the read-only attibute...

SetAttr "TESTFILE", vbNormal

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
You're welcome.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top