Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UNC Names and STRTOFILE()
Message
De
24/12/2000 03:19:09
 
 
À
23/12/2000 21:00:22
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00456603
Message ID:
00456655
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform