Home windows Create .Bat file to run .exe with add. Parameter

Create .Bat file to run .exe with add. Parameter

Author

Date

Category

I need to run the NetBeans program with an additional parameter. Here is a working version through the console in steps:

& gt; b:
& gt; cd "Program Files \ NetBeans 7.4 \ Bin"
& gt; NetBeans64.exe --Locale en: US

However, this option is very cumbersome, plus the console closes the program itself. I tried to write .bat file:

@ echo off
Echo NetBeans.
START "NETBEANS" "B: \ Program Files \ NetBeans 7.4 \ Bin \ NetBeans64.exe --Locale en: US"
Pause
EXIT

This decision, however, does not work, reports that it cannot find what I want. I know that the task is simple, but with writing such files never faced. Therefore, you need help – plz., Just write what you need to fix. I will be very grateful.


Answer 1, Authority 100%

Most likely the error is that the path to the program in the Start command contains spaces and is not concluded separately in quotes. Try this:

start "netbeans" "B: \ Program Files \ NetBeans 7.4 \ Bin \ NetBeans64.exe" --Locale en: US

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions