Funktionreferenz


_WinAPI_PathIsUNCServerShare

Beschreibung anzeigen in

Ermittelt, ob ein String ein gültiger UNC-Freigabepfad (Universal Naming Convention) ist

#include <WinAPIShPath.au3>
_WinAPI_PathIsUNCServerShare ( $sFilePath )

Parameter

$sFilePath der zu prüfende Pfad.

Rückgabewert

True: der Pfad hat die Form "\\server\share".
False: der Pfad hat nicht die Form "\\server\share".

Siehe auch

Suche nach PathIsUNCServerShare in der MSDN Bibliothek.

Beispiel

;-- TIME_STAMP   2017-11-27 01:52:33   v 0.1

#Region    ;************ Includes ************
#include <WinAPIShPath.au3>
#EndRegion ;************ Includes ************

_Example(@WindowsDir)
_Example(@ComSpec)
_Example(@LogonServer)
_Example(@LogonServer & '\MyShare')

Func _Example($sPath)
    ConsoleWrite('> $sPath = ' & $sPath & @CRLF)
    ConsoleWrite(StringFormat('%s\r\r', _WinAPI_PathIsUNCServerShare($sPath) ? '+ Der Pfad ist in der Form "\\server\share".' : '! Der Pfad ist nicht in der Form "\\server\share".'))
EndFunc