Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP won't overwrite a file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01142411
Message ID:
01142911
Views:
11
Hi Russell,

>I have a weird situation where I'm generating some text files and VFP tells me the file name is an invalid path/filename.

That happens when one of the parent direcories has the hidden or system attribute set. Some parts in VFP deal with this properly, others try to validate the file name by parsing the full path from the root down to the file. That code ignores hidden and system files making VFP assume that the directory does not exist. Hence, the error. You can see this pretty good with FILEMON from sysinternals.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform