UDF > WinAPIEx > ShellPath >


_WinAPI_UrlCreateFromPath

Convertit un chemin Microsoft MS-DOS en une URL sous forme canonique

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

Paramètre

$sFilePath Le chemin d'accès MS-DOS.

Valeur de retour

Succès: Retourne l'URL.
Échec: Définit @error <> 0, @extended peut contenir le code d'erreur HRESULT.

Voir aussi

Consultez UrlCreateFromPath dans la librairie MSDN.

Exemple

#include <WinAPIShPath.au3>

Local $sPath = @ScriptFullPath

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

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