If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > UNC to Fully Qualified Domain Name

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-04, 04:16
brianpagan brianpagan is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
UNC to Fully Qualified Domain Name

Does anybody know how to translate a UNC filename to a Fully Qualified Domain Name (FQDN) format, or alternatively retrieve a filename in a FQDN format?
Reply With Quote
  #2 (permalink)  
Old 03-18-04, 08:05
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
If you check Microsoft's Naming Conventions page, you'll see the definition for both... I'm not sure that it is possible to convert between them for all cases.

-PatP
Reply With Quote
  #3 (permalink)  
Old 03-18-04, 08:11
brianpagan brianpagan is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
Pat,

Thanks for that. What I am trying to do is to get a FQDN from the Office file dialogue so that I can store the full FQDN of the file selected

Thanks

Brian
Reply With Quote
  #4 (permalink)  
Old 03-18-04, 09:33
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
I'm confused. UNC names and FQDN names aren't the same thing, and they aren't either sub or super sets of a common thing. Your question makes as much sense to me as "How do I turn a lemon into a brick?" because of the disconnect.

I must be missing something. Can you give me an example?

-PatP
Reply With Quote
  #5 (permalink)  
Old 03-19-04, 13:23
brianpagan brianpagan is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
Quote:
Originally posted by Pat Phelan
I'm confused. UNC names and FQDN names aren't the same thing, and they aren't either sub or super sets of a common thing. Your question makes as much sense to me as "How do I turn a lemon into a brick?" because of the disconnect.

I must be missing something. Can you give me an example?

-PatP
Pat,

I have a facility that allows users to store links to documents (e.g. Word Excel, etc). To ensure that these links can be used by users with different logical drive mappings I store the UNC path of the document. We are now upsizing the application to an enterprise application running on multiple domains across a WAN. I have been requested to use FQDNs rather than UNCs to ensure that the document links are unambiguous.

I take your point that FQDNs and UNCs are the same thing, what I was trying to get was a FQDN based format for a file selected from the Office open file dialogue (I currently retrieve the UNC from the result of this). I see no easy way of doing what I want so I have implemented my own code that resolves the server part of the UNC into a FQDN format using centralised lookup tables. It introduces a bit of ongoing lookup table maintenance overhead, but I can’t see any easier way of doing it

Thanks for your help

Brian
Reply With Quote
  #6 (permalink)  
Old 03-19-04, 13:28
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
I think that is as good as you can get. There might be an API call exposed somewhere on a federated domain controller, but I have no clue what it might be or how to use it.

Sorry I couldn't be more help!

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On