>>>does the following work as well?
>>>
>>>
>>>mytest = lcPath + "\nul.txt"
>>>if file(mytest) then
>>> copy file (myhappyfile) to (lcPath)
>>>else
>>> md lcPath
>>> copy file (myhappyfile) to (lcPath)
>>>endif
>>>
>>>
>>
>>Nope - just go to an NT box and check for "C:\nul.txt".
>
>Drop the ".txt" part and it works. In fact, you could also use other device names like CON, AUX, PRN etc.
>?FILE("C:\NUL")
>
I think you'd better check on an NT system - FILE('C:\NUL') returns .F.
VFP 6, NT 4.0 Build 1381, SP4, both WS and Server,