Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change File Attributes?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00229940
Message ID:
00229951
Vues:
21
>I'm using:
>
>RUN /N2 ATTRIB -R &FullPath
>
>To turn off read-only attributes for a file before my application deletes it. I figured it would be easier to do this for all files I'm about to delete - but it seems to be pretty slow (I'm deleting a bunch of old files).
>
>I have two questions:
>
>1) I seem to remember an article recently about some new VFP6 commands. Among them was an easy way to change attributes. How can I easily change attributes of a file within VFP6?
>
>2) Would it be faster to check the current attributes before changing them ro R/W, or would it be faster to set each file to R/W before deleting it?
>
>TIA

Hi Michael,

Check the download section under Win32 and other APIs. Hank Fay has posted some code that will both retrieve and change file attributes.

hth,
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