Sign in to follow this  
Followers 0
Marmota

.exe ?

5 posts in this topic

Ok, I'm new at AutoIt and should want to learn to do something by myself. But now I'm stuck with .exe things...

So, is there any way how I could find.. let's say Firefox's ".exe name" (don't know what I should say it).

Sorry for my bad English :)

Share this post


Link to post
Share on other sites



Ok, I'm new at AutoIt and should want to learn to do something by myself. But now I'm stuck with .exe things...

So, is there any way how I could find.. let's say Firefox's ".exe name" (don't know what I should say it).

Sorry for my bad English :)

I really dont understand what you're talking about ..

Without the filename , you cant really do anything..

Share this post


Link to post
Share on other sites

I think he wants to know how to get the name of the firefox .exe (ex. firefox.exe)

Share this post


Link to post
Share on other sites

Ok, I'm new at AutoIt and should want to learn to do something by myself. But now I'm stuck with .exe things...

So, is there any way how I could find.. let's say Firefox's ".exe name" (don't know what I should say it).

Sorry for my bad English :)

Welcome to AutoIt forums :)

Have a look at _ProcessGetName in the help file. The example might tell you what you want.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe", "")

Edit 1: And

RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox (2.0.0.7)", "InstallLocation")

Edit 2: And...

MsgBox (0, "", _GetMozillaInstallPath ())
Func _GetMozillaInstallPath ()
    $ver = RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox", "CurrentVersion")
    $ret = RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\" & $ver & "\Main", "PathToExe")
    Return $ret
EndFunc
Edited by Bert

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0