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)