how can i create batch file to run application , after run the application it wants to close or exit the batch file?

how can i create batch file to run application , after run the application it needs to close or exit the batch file, not wait for application exit

Thank you
Nilesh HavireBusiness ITAsked:
Who is Participating?
jvfernandezConnect With a Mentor Commented:
Use the "start" command inside the batch file (start app.exe)
i can provide you an example to handle this with vbscript (.vbs)

set objShell = CreateObject("Wscript.Shell")
objShell.Run "YourApplication.exe",1,false


The START command launches another application in its own window. The various switches that come with the START command let you start the program maximized or minimized. You can even control the title of the window, the program's priority, memory space, and several other aspects. Furthermore, you can control if you want the batch file to wait for the other program to terminate before continuing to run.

The START command is capable of launching more than just executable files. If a file has a registered file type, the command can open the application owning the file extension and tell the registered application to open the desired file. For example, typing start me.bmp would launch Paint and open the file Me.bmp. You can get the specific parameters of the START command by typing start /? at the command prompt.
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Nilesh HavireBusiness ITAuthor Commented:
thank you...

it is works...
Which method did you use "start.exe" or my vbscript?
any further questions?
Nilesh HavireBusiness ITAuthor Commented:
i using start for run from bat file, vbscript i also checked it also working fine.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.