Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtofile returns 135 but nothing gets written
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Strtofile returns 135 but nothing gets written
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01631161
Message ID:
01631161
Views:
91
UPDATE. Running VFP as Admin did help - the file was created OK. I guess we're also running our applications as Admin as the files are being created when running dll.


Hi everybody,

I'm trying to test a program in Windows 10 in VFP. We have write_log method that uses strtofile. I can see that it returns 135 bytes and uses the following command

strtofile(m.tcMessage + lcCR, .cProgramDataPath + .cLogFile, .t.)

where cProgramDataPath points to c:\ProgramData\CompanyName\Pool\AppName.

That folder appears to be Read-only in Windows 10. Despite the fact that strtofile returns 135 bytes I see no file created in that folder.

I am also unable to change attributes of the directory when I try to do so using Properties of the folder.

What should I do?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform