Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNC to local machine
Message
From
11/09/2003 02:02:32
 
 
To
10/09/2003 17:03:17
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00827999
Message ID:
00828069
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform