Bueno tuve un tiempito libre y hice esta función.

Código: Seleccionar todo

#cs -------------------------------------------------------
AutoIt Version: 3.3.8.1
Autor..........: Pink
Script Function...: Mi_Ruta()- "Muestra Ruta Completa"
Uso..............: Mi_Ruta()
#ce -------------------------------------------------------


Func Mi_Ruta()
$dll=DllCall("kernel32.dll","Ptr","GetCommandLine")
$struct=DllStructCreate("char[260]",$dll[0])
$Path=DllStructGetData($struct,1)
$Path=stringmid($Path,2)
Return stringmid($Path,1,stringinstr($Path,'"')-1)
EndFunc

saludos
Imagen
Responder

Volver a “Fuentes”