Close Batch-Script-Window after Program Start
Question by Guest | 2015-03-29 at 20:48
I have written a small batch script that should open an application for me. The program is starting as expected, however, the black CMD window of the command prompt remains open and do not disappear automatically.
My batch script is looking like that:
@echo off ProgramName.exe -parameter exit
I would like to know what I have done wrong. Is there any possibility to directly close the window after starting the program? Currently, the window is only closing after the started program is executed and I have closed it.
Related Topics
Windows Batch Script: Computer Shutdown
Tutorial | 2 Comments
Delphi/Lazarus: Command Line Parameter Tutorial Part 1: Sending
Tutorial | 0 Comments
Put Windows via Script into Hibernation or Sleep Mode
Tutorial | 0 Comments
Windows: How to make Hibernation available
Tutorial | 0 Comments
Windows: How to run a Program as Administrator - Once, Always or with Shortcut
Tutorial | 0 Comments
Batch Script: Start program and wait until it is finished
Question | 2 Answers
jQuery: Submit complete form and receive content with Ajax
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
Just write "start" in line before the name of the program.
It should look something like that:
This should make the program started and the CMD window closed automatically.
2015-03-29 at 23:07