Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: running an executable from a bat file  (Read 4643 times)

0 Members and 1 Guest are viewing this topic.

eric tyira

  • Guest
running an executable from a bat file
« on: August 20, 2004, 11:30:20 AM »
i'm trying to launch an executable from a bat file.  i want the exe file to run in the system's tray and have the .bat file close.

currently it stays open until it is closed by clicking the 'x' on its window, or by stopping the .exe file.

can anyone help me here?

thanks.

johnwill

  • Guest
Re: running an executable from a bat file
« Reply #1 on: August 20, 2004, 05:03:43 PM »
Put a separate line in the batch file with:

EXIT

MalikTous

  • Guest
Re: running an executable from a bat file
« Reply #2 on: August 21, 2004, 06:13:59 PM »
Including 'exit' as the last line of the BAT file will clear the DOS box once the EXE app has finished. It may be less successful while the EXE runs.

You could try running the EXE from a link/shortcut vice from a batch.

johnwill

  • Guest
Re: running an executable from a bat file
« Reply #3 on: August 21, 2004, 06:56:04 PM »
In Windows, any windows application will allow the batch job to continue.  Since it's loading into the system tray, I assume it's a Windows application.  :)

2k dummy

  • Guest
Re: running an executable from a bat file
« Reply #4 on: August 21, 2004, 07:19:48 PM »
In win98 you don't even need the exit command. You can tell windows to automatically exit when the batch completes. It is running under pure dos instead of under windows control you will need it. You can do the same thing in 2k and XP if you know the secret. ;D

johnwill

  • Guest
Re: running an executable from a bat file
« Reply #5 on: August 22, 2004, 10:15:13 AM »
Yes, the "secret" is to run it from a shortcut and you get all sorts of run-time options. :)