Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Start" command not working while running a batch file

I am creating a batch file which loads some applications back to back. However, one of the applications has to run asynchronously, because it essentially launches the window and then never returns the control. I was looking for a command which lets me run the application in asynchronous async manner, and I came across the START command.

However, I can launch the application when I do not use the start command. Whenever, I use the start command nothing happens. There are no errors, but it just does not launch the application. I also tried /b and /wait options, but no help.

My command is as the following:

start C:\Users\c_desaik\Desktop\Queueingsystem\Upload System.exe

One more thing that I realized is that start command works if the path of executable is not wrapped in quotes. I am not sure why is this a problem. This means that if I change the command above to

start C:\Users\c_desaik\Desktop\Queueingsystem\Trial.exe (No spaces in the path)

It does work. Is there a way around this?

like image 977
Lost Avatar asked May 20 '26 09:05

Lost


1 Answers

Start command requires as first parameter the window title as in Start /?

START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED] [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]...

So, try the following:

start "" "path\to\your\executable"

like image 121
Rafael Avatar answered May 23 '26 06:05

Rafael



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!