Bat file to run a .exe at the command prompt

Anonymous Box picture Anonymous Box · Oct 21, 2008 · Viewed 1.1M times · Source

I want to create a .bat file so I can just click on it so it can run:

svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localhost:8000/ServiceModelSamples/service

Can someone help me with the structure of the .bat file?

Answer

abatishchev picture abatishchev · Jul 6, 2011

To start a program and then close command prompt without waiting for program to exit:

start /d "path" file.exe