Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove the ReadOnly attribute
Message
From
05/01/2000 13:59:43
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00313315
Message ID:
00313382
Views:
29
>>>any way within foxpro to remove the read only attribute from a file? I see i can do a lowlevel function to open a file read only.. but does that set the attribute after you close it as well?
>>>
>>>
>>>Thanks,
>>>Jason
>>
>>Hi Jason,
>>
>>Don't think closing the file low level will change the attributes. But I'm sure there is an API or Windows Scripting Host call that can be made for this. I haven't had to do this so I don't know what it would be. You might poke around API and WSH to see and probably someone with more info on this will chime in. If no one does, I'll look at it myself and see what I can find out.
>
>There's a sample implementation of the Win32 API SetFileAttributes() call already on UT in the FAQ as entry #241 Set and get file attributes

Thanks, Ed. I figured probably you or George would know this one off the top of your heads.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform