Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNC Names and STRTOFILE()
Message
From
24/12/2000 03:19:09
 
 
To
23/12/2000 21:00:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00456603
Message ID:
00456655
Views:
23
Dragan:

Noted - and thanks for the advice.

>>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).
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform