Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to uncheck the windows attribute readonly
Message
 
 
To
26/01/2004 16:28:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00870776
Message ID:
00870783
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform