IAdapter
IAdapter

Reputation: 64747

Batch and not blocking console

I would like to run program from windows console(cmd.exe) and close console after that. now when i do it the console stays opened as long as the program is running.

I would like it to start program, close console and use program.

I double click the batch

@c:\somedir\app.exe

Upvotes: 1

Views: 2635

Answers (2)

norq
norq

Reputation: 1434

Use start

START "title" [/Dpath] [options] "command" [parameters]

Example: start /B "Test" program.exe

http://ss64.com/nt/start.html

Upvotes: 6

Matt Hulse
Matt Hulse

Reputation: 6212

I'm not running Windows right now so I can't try it out, but have you looked into start? You can find more information here.

Another option might be call.

Upvotes: 1

Related Questions