Pages

06 July, 2024

How to expand path to UNC including all server domain information?

I need to compare path strings, and can't work with any difference in the given information of an UNC path.


How to convert a path into the full UNC version, including server domain information, in Delphi?
thispath : String;

thispath := 'x:\testfolder_on_server';

thispath := ExpandUNCFIlename( thispath ) ; // '\\myserver\testfolder_on_server\'



But what I need is the UNC Path including all the domain information for my server path.
'\\myserver.local.commay\testfolder_on_server\'

No comments:

Post a Comment

Thanks