Funktionreferenz


_WinAPI_UrlCreateFromPath


Converts a Microsoft MS-DOS path to a canonicalized URL

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

Parameter

$sFilePath The MS-DOS path.

Rückgabewert

Success: The URL.
Failure: Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

Bemerkungen

None.

Siehe auch

Suche nach UrlCreateFromPath in der MSDN Bibliothek.

Beispiel

#include <WinAPIShPath.au3>

Local $sPath = @ScriptFullPath

$sPath = _WinAPI_UrlCreateFromPath($sPath)
ConsoleWrite($sPath & @CRLF)

$sPath = _WinAPI_PathCreateFromUrl($sPath)
ConsoleWrite($sPath & @CRLF)