WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Get EXE Name

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get EXE Name of Loader Programs

Keywords:	 exe bane loader program wbt

When you launch some products, like AmiPro and Lotus, you don't actually launch the exe file, but rather a "loader" program that loads the real exe file.

We call this the "loader program problem", where the EXE you launch is in reality just a little loader for a bigger EXE that does the real work. The little EXE starts the big one. This fools RunWait and AppWaitClose, especially if you do not have the name of the real EXE in the Appwaitclose statement.

Try AppWaitClose if you can determine the EXE that really owns the setup window. If you have a current version of WinBatch, just run WINBATCH.EXE when the setup window is on the screen and choose the "Determine owning exe" menu item. Select it and move the mouse over the application. It should show the real name of the exe running. Use that EXE name in AppWaitClose.

If you don't have a newer version of WinBatch that includes this script, use the code below to determine the "real" EXE under the mouse:

   BoxOpen("EXE FILE FINDER"," ")

   :loop

   a=MouseInfo(1)

   exe=WinExeName(a)

   BoxText(strcat(a,@CRLF,exe))

   goto loop

Start up the programs, run the winbatch file, move the mouse over the program window and take a look at the box for the EXE file to use.


Article ID:   W13157
Filename:   Get EXE name Loader Programs.txt
File Created: 2001:01:15:10:37:20
Last Updated: 2001:01:15:10:37:20