Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting a exe process in bat without starting a new CMD

In a certain part of my script, I want to run a certain executable, but I can`t do exactly what I want:

  • 1:

    "path/to/my/file.exe"

will execute the file perfectly, however, my batch will stop executing until file.exe ends, and that's not what I want.

  • 2:

    • 2.1:

    start "path/to/my/file.exe"

    • 2.2

    start "path/to/my/file.exe" /b

2.1 will start another cmd window, which I don't want. 2.2 Won't allow my batch script to return, and we're back to 1.

  • 3:

    call "path/to/my/file.exe" /b

Back to 1.

So, is there any way of doing what I want? Simply starting an executable and let it run in the background?

like image 322
ShizukaSM Avatar asked Jan 28 '26 07:01

ShizukaSM


1 Answers

I think you you want

start "" /b "path/to/my/file.exe"

?

Bill

like image 115
Bill_Stewart Avatar answered Jan 30 '26 20:01

Bill_Stewart