Closing a Running Program Based With a Specified Path Topic is solved
-
- Posts: 348
- Joined: 27 Apr 2019, 17:38
Closing a Running Program Based With a Specified Path
I have multiple copies of a portable program which are stored in different directories. When I launch these copies, multiple instances of the program are launched. They have identic .exe files and the same window titles. Therefore, in order to interact with a specific program among them, AutoHotkey needs to know the path to its .exe file, in order to differentiate it from the rest of the copies with the same window titles. What commands can be used to ascertain whether a program with a specified path is running, and if so, to close it?
Re: Closing a Running Program Based With a Specified Path Topic is solved
Link: ahk_exe.
It allows full paths.
It allows full paths.
Re: Closing a Running Program Based With a Specified Path
That is interesting about the full path.
Example is below.
Example is below.
Code: Select all
WinClose, ahk_exe %A_WinDir%\System32\notepad.exe
-
- Posts: 348
- Joined: 27 Apr 2019, 17:38
Re: Closing a Running Program Based With a Specified Path
Thank you. This makes it possible to interact with programs with different paths but the same title and file names.mikeyww wrote: ↑11 Jun 2021, 11:43That is interesting about the full path.
Example is below.
Code: Select all
WinClose, ahk_exe %A_WinDir%\System32\notepad.exe
Who is online
Users browsing this forum: Anput and 336 guests