Search code examples
javawindowsbatch-filecmdwildfly-10

Run standalone.bat from Wildfly like background process command line?


I'm having trouble installing Wildfly as a service.

So I need to be able to run the Wildlfy in standalone mode as a temporary solution, but I want it to run in the background since it is a shared server and by mistake someone can close the console:

C:\wildfly-10.1.0.Final\bin>standalone.bat --silent --close-cmd-after-start

Basically I want to be able to close the terminal once the standalone.bat is executed


Solution

  • The solution thanks to the suggestion of Eriksun

    cd C:\wildfly-10.0.0.Final\bin>
    
    powershell -c "saps standalone.bat -windowstyle hidden"