Posts: 576
Threads: 97
Joined: Aug 2007
Is there anyway to use getpath to get the path of an application using the window name?
ex)
str getPath
getPath.getpath(win("Corp 5.0.2.3"))
out getPath
and i need it to out something like this "C:\Documents and Settings\Owner\Desktop\Corp 5.0.2.3 Installer.exe"
Thanks!
Posts: 12,073
Threads: 140
Joined: Dec 2002
Posts: 576
Threads: 97
Joined: Aug 2007
Macro
str s.getwinexe(win("Quick Macros Forum"))
out s
If that is run it outs this
What i need it to get is the path of an exe of a window open.
Dont know how else to explain it.
Say iexplorer.exe is saved on the desktop and i run the macro on the window.
Need it to out put.
C:\Documents and Settings\Owner\Desktop\iexplorer.exe
Posts: 12,073
Threads: 140
Joined: Dec 2002
Please read getwinexe help or look in status bar.
Posts: 576
Threads: 97
Joined: Aug 2007
Ok getwinexe works perfect i wasnt putting the [full] as 1.
This also worked to find where a file was located but took alot of time, im guessing because it needed to search all of C:\ drive.
Macro
Dir d; str vPath
foreach(d "C:\WK Install.exe" FE_Dir 0x4)
,vPath=d.FileName(1)
,goto found
;found
out vPath
Thanks Gint!