Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to uncheck the windows attribute readonly
Message
De
26/01/2004 16:41:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/01/2004 16:28:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00870776
Message ID:
00870782
Vues:
15
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform