Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting File Attributes
Message
 
 
À
11/10/2001 09:57:45
Paulo Pechula
Folhamatic Sistemas
Americana, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00566927
Message ID:
00566931
Vues:
15
>Hi everyone.
>
>I'd like to know if is there any API function that sets a file attribute (Hidden, Read Only, System...).
>I'm using the "!" command at the moment (and I don't like the results.. ;) My screen blinks every time whem I run this command).
>
>Thanks for any help...
>
>Regards...
>
>Paulo.

You don't have to use DOS command to do that. Download file#9311 'File Attribute Get & Set' or use WSH
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFile = oFSO.GetFile(lcfile) && lcfile is the name of the file
* Turn off the read-only bit
oFile.Attributes = BITAND(oFile.Attributes, 0xFE)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform