Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strtofile returns 135 but nothing gets written
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Strtofile returns 135 but nothing gets written
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01631161
Message ID:
01631161
Vues:
93
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform