Получить сетевой путь к зашаренному файлу по локальному пути

Советы » Сеть » Получить сетевой путь к зашаренному файлу по локальному пути

 ExpandUNCFileName returns the full path of

the FileName
 with

the network drive portion in

UNC format.

 The pathname in

the UNC-Format has the format:  Servernamesharename
 ExpandUNCFileName gibt einen String

mit dem vollstandigen  Pfadnamen der in

FileName ubergebenen Datei zuruck.

 Ein vollstandig qualifizierter Pfadname besteht aus der  Laufwerkskomponente des Dateinamens im UNC-Format:  Servernamesharename

 // Example, Beispiel:
Label1.Caption := ExpandUNCFileName('K:sharename.tmp'));
 {where "K" is a Network Drive.}  

Другое по теме:

Категории

Статьи

Советы

Copyright © 2023 - All Rights Reserved - www.delphirus.com