Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UNC to local machine
Message
De
11/09/2003 02:02:32
 
 
À
10/09/2003 17:03:17
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00827999
Message ID:
00828069
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>I am working on an application where existing code requires a path to be in UNC format. As a default, I want to point to a share on the local machine using a generic value. Using \\127.0.0.1\MyShare works, but I was hoping for something prettier. I tried \\localhost\MyShare, but I guess "localhost" applies only to http. Any ideas?

You could parse the system's NetBIOS name from SYS(0), then use that - e.g. if your machine's NetBIOS name is "MyMachine", then the share's UNC would be \\MyMachine\MyShare.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform