Ermittelt, ob ein String ein gültiger UNC-Freigabepfad (Universal Naming Convention) ist
#include <WinAPIShPath.au3>
_WinAPI_PathIsUNCServerShare ( $sFilePath )
$sFilePath | der zu prüfende Pfad. |
True: | der Pfad hat die Form "\\server\share". |
False: | der Pfad hat nicht die Form "\\server\share". |
Suche nach PathIsUNCServerShare in der MSDN Bibliothek.
;-- 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