buddy,
you're starting to help. Why were you so stubborn before? You were only repeating your problem, but not answering questions.
I now know you're using McAffee, although Doug Hennig had thrown antivirus in as your second answer! Why did it take you so long to react to that?
I know someone else using McAffee, who does not having that problem, but it may be due to excluding directories or file extensions. That's an option you should test.
= "Dan said" said:
VFP makes the .bak files as part of saving, but deletes them when the save is complete. So something in your environment is preventing the save.
That's untrue, you have an option to do and keep .bak files when saving prgs, but that doesn't prevent overwriting the prg files with the new version. Indeed it can be assumed vfp does rename the old .prg to .bak and then saves a new .prg
= "buddyrich2" said:
Very interesting that you don't get .bak files. I have always gotten them... is this a setting in VFP?
Yes it's a setting. Tools->Options->IDE Tab->Specify file/Window Type: Program Files, then in Save Options check "make backup". Unchecking this will ilkely only make the problem worse, in that the new prg will not be saved and the old prg may be removed. So if you try to change that option, try with some new dummy prg just for testing purposes.
I'd still second DougHennig (again mentioned: your second answer!) it may be antivirus being alarmed by files renamed and overwritten.
If that is the problem, it would be solvable by excluding C:\enrollment from live scanning. You can let mcaffee scan that directory in a full scan over night, but exclude it from live scanning, guard or how it's called in McAffee.
You might also exclude .prg and .bak file extensions.
The suspicion is, McAffee is deleting the prg or perhaps just scanning it and making vfp fail to finish writing it, so it finally is messed and not written, while McAffee doesn't find a virus.
The suspicion UAC is the source of your problem was clear of suspicion for me as you said from the beginning the problem just began after VFP worked correctly for several weeks. The reason therefore can only be UAC if you turned that on at that time, being aware of it or not.
The second reason now to not investigate along the UAC route is, that you have the problems with prgs you save to your own C:\enrollment folder.
The antivirus suspicion is getting more important.
Bye, Olaf.