>I have a program that locates and moves linked Word documents that users drop all over the network. Unfortunately, FILE() returns .F. for a file with the name such as "John C. Smith Letter.DOC". Files with periods or some other previously disallowed characters aren't recognized.
>
>If anyone has a solution or workaround, I would greatly appreciate it.
>
>TIA
Dan,
I just tested in VFP6 SP3 and file() works fine as long as the file name is enclosed in quotes, for example;
Given a file named "testing spaces.txt".
?File("Testing spaces.txt") && .T.
mfile = "Testing Spaces.txt"
?File(mfile) && .T.
?File(Testing spaces.txt) && Error missing )