Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro Equivilant of ATTRIB command?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00688042
Message ID:
00688057
Vues:
31
>Is there anyway to change the attributes of a file in VFP6? Either a built in command/control, or a third party VCX would work fine...
>
>Thanks

How about the Windows Script Host.
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
* lcfile is the file to have the attributes modified
oFile = oFSO.GetFile(lcfile)
* Flip the read-only attribute
oFile.Attributes = BITXOR(oFile.Attributes, 1)
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform