Search code examples
batch-filecmdnetbeans-8flags

Add flags in bat file to open netbeans without console


I want to open netbeans using cmd in win10, Added C:\Program Files\NetBeans 8.2\bin to PATH and also created a netbeans.bat file as :

@START C:\Program Files\NetBeans 8.2\bin\netbeans.exe /console suppress "%1"

It is opening netbeans along with it's console. If i close this console, netbeans also closed automatically

I just want to hide console using flag --console suppress but i don't know how to add it in .bat file

Thank You


Solution

  • I would assume from what you've posted that you have not used the correct syntax for your start command.

    This would seem more like it to me:

     @Start "" "C:\Program Files\NetBeans 8.2\bin\netbeans.exe" --console suppress "%~1"