How can I run a program from a batch file without having the console open after the program start?

For the moment my batch file look like this:

myprogram.exe param1

The program start but the Dos Windows still open... how can I close it?


You can use the exit keyword. Here is an example from one of my batch files:

start myProgram.exe param1

Use the start command to prevent the batch file from waiting for the program. Just remember to put a empty double quote in front of the program you want to run after "Start". For example, if you want to run Visual Studio 2012 from a batch command:

Start ""  "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"

notice the double quote after start.

Need Your Help

Does LINQ To SQL auto update the LOCAL/CLIENT id column after a SubmitChanges call?

c# sql linq

just want to know if linq to sql auto updated the id column of a class (table row object) after SubmitChanges is called inserting a new row to that table, that would be fantastic, would anyone be a...

Problem allocating heap space over 4 GB when calling java “from Python”

java python ram

I am using using os.system call from python to run jar file.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.