Make sure it is not in use.
>I tried to change the file attribute of several 6 files with
>a call to the Windows API function below, and it works with
>5 of the files but not with one FPT file. Should I set the bit
>manually to 0 on that file instead?
>
>DECLARE INTEGER SetFileAttribute IN WIN32API STRING, INTEGER
>SetFileAttributes(FULLPATH(FileName), 32)
>
>Source Safe is making the files read-only (as it should)
>I'm using the Steven Black's INTL tookit and the files I need to
>change its attributes programatically are:
>(INTL Toolkit crashes if the files are R/O)
>
>strings.dbf
>strings.fpt
>strings.cdx
>
>msgsvc.dbf
>msgsvc.fpt --> doesn't work, Win API call doesn't change file attrib from read only to not.
>msgsvc.cdx
>
>it works with the other 5 files, why ?
>(both strings, and msgsvc have memo fields with text in them)
>If I change attributes from Windows Explorer (with file properties) I can do it.
>If I change attributes from DOS it works too.
>So the file is not corrupt.
>
>thanks
>
>Andres Martinez
>
andres@brokersys.com
- Jayesh