>Yo Chris:
>
>Thanks for that - its a great help to know.
>
>>>I currently use Strtofile() to create a file in a specified directory. The specified directory name is a table based parameter that is concatenated to a file name to use as the "FilePath\Filename" in Strtofile(). I will soon require to create the file on another server and wondered whether Strtofile() supports UNC names as part of the target path/file name?
>>>
>>>Any advice appreciated.
>>
>>I just tested this on my nextwork and it worked:
>>
>>lnCharsWritten = STRTOFILE(lcString, "\\SAMMY\Temp\Test.prg")
Actually, the only exception to VFP's (otherwise flawless) handling of long file names, UNCs and other stuff is that you can't launch an VFP executable (at least not in 6.0) from an UNC path with spaces. You can have spaces in a path to a mapped drive, or to a local drive, and to any other file you open across the network (UNC or not), it's just the exe itself which will report that it cannot find itself ([filename].exe not found is the message).