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:41:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/01/2004 16:28:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00870776
Message ID:
00870782
Views:
14
>Can you Please tell me.
>how to uncheck the readonly checkbox of a file from a vfp 6.0
>
>the file is located at the following path:
>
>c:\myapp\documentimage.tiff
>
>Thank you very much.

You can use the DOS command ATTRIB. I think it would be something like this:
lcFileName = "c:\myapp\documentimage.tiff"
lcDosCommand = "attrib -r " + lcFileName
&lcDosCommand
Solutions with the WSH and with the Windows API also exist; but I am not so familiar with them. I am quite sure someone else will show you.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform