Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't get SetFileAttribute to work on one FPT file
Message
From
23/05/1999 00:17:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Can't get SetFileAttribute to work on one FPT file
Miscellaneous
Thread ID:
00221831
Message ID:
00221831
Views:
65
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
Next
Reply
Map
View

Click here to load this message in the networking platform