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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jvfernandezCommented:
Use the "start" command inside the batch file (start app.exe)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
merowingerCommented:
i can provide you an example to handle this with vbscript (.vbs)

set objShell = CreateObject("Wscript.Shell")
objShell.Run "YourApplication.exe",1,false
0
jvfernandezCommented:
From: http://technet.microsoft.com/en-us/library/cc750054.aspx

START

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.
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

Nilesh HavireBusiness ITAuthor Commented:
thank you...

it is works...
0
merowingerCommented:
Which method did you use "start.exe" or my vbscript?
any further questions?
0
Nilesh HavireBusiness ITAuthor Commented:
i using start for run from bat file, vbscript i also checked it also working fine.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.