Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to uncheck the windows attribute readonly
Message
From
26/01/2004 16:43:58
 
 
To
26/01/2004 16:41:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00870776
Message ID:
00870785
Views:
14
I use this to make it readonly using WSH:

IF FILE("C:\scanned2903.tif") THEN
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFile = oFSO.GetFile("C:\scanned2903.tif")
* Set the read-only bit.
oFile.Attributes = BITOR(oFile.Attributes, 1)
ENDIF
######################################
I use BITOR to make it read only.
I don't know how to reverse the BITOR.

Thank you..
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform