Convertit une URL de fichier en un chemin Microsoft MS-DOS
#include <WinAPIShPath.au3>
_WinAPI_PathCreateFromUrl ( $sUrl )
$sUrl | L'URL. |
Succès: | Retourne le chemin d'accès MS-DOS. |
Échec: | Retourne la chaîne vide et définit @error <> 0, @extended peut contenir le code d'erreur HRESULT. |
Consultez PathCreateFromUrl dans la librairie MSDN.
#include <WinAPIShPath.au3> Local $sPath = @ScriptFullPath $sPath = _WinAPI_UrlCreateFromPath($sPath) ConsoleWrite($sPath & @CRLF) $sPath = _WinAPI_PathCreateFromUrl($sPath) ConsoleWrite($sPath & @CRLF)