Convertit un chemin Microsoft MS-DOS en une URL sous forme canonique
#include <WinAPIShPath.au3>
_WinAPI_UrlCreateFromPath ( $sFilePath )
$sFilePath | Le chemin d'accès MS-DOS. |
Succès: | Retourne l'URL. |
Échec: | Définit @error <> 0, @extended peut contenir le code d'erreur HRESULT. |
Consultez UrlCreateFromPath dans la librairie MSDN.
#include <WinAPIShPath.au3> Local $sPath = @ScriptFullPath $sPath = _WinAPI_UrlCreateFromPath($sPath) ConsoleWrite($sPath & @CRLF) $sPath = _WinAPI_PathCreateFromUrl($sPath) ConsoleWrite($sPath & @CRLF)