UDF > WinAPIEx > ShellPath >


_WinAPI_PathCreateFromUrl

Convertit une URL de fichier en un chemin Microsoft MS-DOS

#include <WinAPIShPath.au3>
_WinAPI_PathCreateFromUrl ( $sUrl )

Paramètre

$sUrl L'URL.

Valeur de retour

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.

Voir aussi

Consultez PathCreateFromUrl 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)