Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove the ReadOnly attribute
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00313315
Message ID:
00313343
Views:
27
>>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Next
Reply
Map
View

Click here to load this message in the networking platform