>I am finding shelling out to DOS in my VFP application (under WinNT) to change file attributes from ReadOnly to ReadWrite to be a drag! I don't want to have a DOS window pop up on the screen, and when I use RUN /N2, the command doesn't always finish by the time I need to delete the file in code (yech). There must be some programmatic method to do this:
>
>If ReadOnly
> Make ReadWrite
>EndIf
>
>Even if I have to resort to an API!?!?
>
>TIA
In addition to what the others have said, the download section (Win32 and other APIs) has an entry that will allow you to do this using native FoxPro code, with calls to the API.
George
Ubi caritas et amor, deus ibi est