Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'net use' equivalent in VFP 5
Message
 
À
15/03/2001 19:27:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00485664
Message ID:
00485675
Vues:
7
Hi Tommy,

UNC is not a command, it's another way of referencing resources on a server. It follows the convention \\ServerName\ShareName as a minimum, and that path points to the ShareName share on the ServerName server.

So, if the Net Use command you want to use is something like
NET USE g: \\Server\Data
then the \\Server\Data is a UNC path.

BTW, UNC stands for Universal Naming Convention (I think)

VFP handles UNC paths just as well as mapped or local paths.

As an aside, there's an example showing how to convert between a mapped path and a UNC path on my website

Cheers,

Andrew

>Andrew,
>
>Thanks for your fast response. Would you describe a little more about the UNC command or suggest where I could read about it and the parameters. I need to connect to an NT server with user name and password before doing the copy.
>
>Thanks again.
>Tommy
>
>>Hi Tommy,
>>
>>You can do this with the API, but you could also just use UNC pathing inm the VFP command
>>copy file ("\\server\share\folder\file name") to ("another possibly UNC path")
>>
>>Cheers,
>>
>>Andrew
>>
>>>Hello,
>>>
>>>Is there an equivalent of the DOS 'net use' command in VFP 5? I would like to connect to a server on a LAN, copy some files, then disconnect with code. Using the FoxPro 'run' command ( ! net use...) works, but not very well.
>>>
>>>Thanks.
>>>Tommy Durham


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform