Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked Funcion Dir Ruta-Nombre de Archivo [By Pink]


Expermicid

Recommended Posts

[lenguaje=autoit]#cs -------------------------------------------------------

AutoIt Version: 3.3.8.1

Author..........: Pink

Script Function...: Dir "Retorna la Ruta sin el nombre del Archivo

Uso..............: Dir("C:\Windows\System32\Dism\es-ES\MsiProvider.dll.mui") Retorna "C:\Windows\System32\Dism\es-ES\"

#ce -------------------------------------------------------

 

;Ejemplo

$ruta="C:\Windows\System32\Dism\es-ES\MsiProvider.dll.mui"

msgbox(0,"",Dir($ruta))

 

;Funcion Dir

func Dir($path)

local $delimiter="\"

$array =StringSplit($path,$delimiter)

$len=UBound($array)-1

$numero= $len-1

$num=StringInStr($path,$delimiter,0,$numero)

$dir=StringMid($path,1,$num)

return $dir

EndFunc[/lenguaje]

Edited by Expermicid
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.