Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Resolving a fully-qualified Windows program filename

$
0
0

Thanks to all the great support I've had on this forum, I have my first AutoIt script working well.   Now I would like to be able to free my script from its dependence on a hard-wired path to the Adobe Acrobat PDF reader.   Currently, I have the path defined in a variable I use in subsequent Run statements.

Local $AcrobatPath = '"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A page='

Is there some sort of function that will allow me to query Windows with "AcroRd32.exe" and get the full pathname to that executable?

 

I'd like to be able to distribute the script to my friends, but can't be sure their AcroRD32.exe will be installed in the same directory.

 

Any guidance, advice or suggestions will be greatly appreciated.

 

Thanks!


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>