Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getpath of win
#1
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!
#2
getwinexe
#3
Macro
Code:
Copy      Help
str s.getwinexe(win("Quick Macros Forum"))
out s

If that is run it outs this

Code:
Copy      Help
iexplore

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.

Code:
Copy      Help
C:\Documents and Settings\Owner\Desktop\iexplorer.exe
#4
Please read getwinexe help or look in status bar.
#5
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
Code:
Copy      Help
Dir d; str vPath
foreach(d "C:\WK Install.exe" FE_Dir 0x4)
,vPath=d.FileName(1)
,goto found
;found
out vPath

Thanks Gint!


Forum Jump:


Users browsing this thread: 1 Guest(s)