Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to uncheck the windows attribute readonly
Message
 
 
À
26/01/2004 16:28:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00870776
Message ID:
00870783
Vues:
16
>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.

This will clear all the file attributes:
PROCEDURE ClearAttributes
   LPARAMETERS tcFileName
   LOCAL lcFile, lnRetVal
   lcFile = ALLTRIM(tcFileName)
   DECLARE SHORT SetFileAttributes IN KERNEL32 ;
      STRING @ lpFileName, ;
      INTEGER dwAttributes
   lnRetVal = SetFileAttributes(lcFile, 0) && Remove all attributes
   RETURN (lnRetVal > 0)
ENDPROC
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform