>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