Creation.bat file to run.exe with an additional parameter

I need to run a NetBeans program with an additional parameter. Here is a working option via the console step by step:

>b:
>cd "Program Files\NetBeans 7.4\bin"
>netbeans64.exe --locale en:US

However, this option is very cumbersome, plus closing the console closes the program itself. I tried writing it .bat file:

@echo off
echo Netbeans
start "netbeans" "b:\Program Files\NetBeans 7.4\bin\netbeans64.exe --locale en:US"
pause
exit

This solution, however, doesn't work, reports that it can't find what I want. I know that the task is simple, but I have never encountered writing such files. So you need help-plz., just write down what needs to be fixed. I would be very grateful.

Author: srgg67, 2013-12-20

1 answers

Most likely, the error is that the path to the program in the start command contains spaces and is not enclosed separately in quotation marks. Try this way:

start "netbeans" "b:\Program Files\NetBeans 7.4\bin\netbeans64.exe" --locale en:US
 2
Author: Shad, 2013-12-20 21:49:51