Expermicid Posted August 2, 2012 Share Posted August 2, 2012 (edited) [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 February 16, 2014 by Expermicid Link to comment Share on other sites More sharing options...
Recommended Posts