Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change file attribut...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00586467
Message ID:
00586886
Vues:
19
Just remember tha WSH is included in Windows starting with Windows 2000. There's no guaranty that it would be present on PC with any previuos version of Windows.

>This way (using Scripting object) is realy new for me.
>It really cool! :)
>Thank you.
>
>>>I what to change the file attribute to read only.
>>>How do we do this again?
>>
>>You can use WSH
>>oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>>oFile = oFSO.GetFile(lcfile) && lcfile is the name of the file
>>* Turn on the read-only bit
>>oFile.Attributes = BITOR(oFile.Attributes, 0x01)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform