Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products_hiddenbatchfile [2020/05/12 19:42] wikiadmin created |
products_hiddenbatchfile [2020/05/12 19:45] (current) wikiadmin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | !!%green% [++How to Start Windows run.bat without a Console Window (Hidden) | + | **How to Start Windows run.bat without a Console Window (Hidden)** |
As generated, the run.bat file to start various TransSECS deployments runs with a console window for debugging. For final deployment you can remove this console window by changing the batch file by using a start /b in the command line which starts java. | As generated, the run.bat file to start various TransSECS deployments runs with a console window for debugging. For final deployment you can remove this console window by changing the batch file by using a start /b in the command line which starts java. | ||
- | For example,a batch file might be generated as: | + | For example, a batch file might be generated as: |
- | [@ | + | <code batch> |
@echo off | @echo off | ||
rem Ensure there is a jre on the path. Copy the jre provided or install a jvm | rem Ensure there is a jre on the path. Copy the jre provided or install a jvm | ||
Line 14: | Line 14: | ||
java deploy.ToolName.EquipmentController | java deploy.ToolName.EquipmentController | ||
@echo on | @echo on | ||
- | @] | + | </ |
- | Change the line "deploy.ToolName.EquipmentController" | + | Change the line: |
+ | < | ||
+ | java deploy.ToolName.EquipmentController | ||
+ | </ | ||
+ | to: | ||
+ | < | ||
+ | start /b javaw deploy.ToolName.EquipmentController | ||
+ | </ | ||
The script below has this change and will run " | The script below has this change and will run " | ||
- | < | + | < |
@echo off | @echo off | ||
rem Ensure there is a jre on the path. Copy the jre provided or install a jvm | rem Ensure there is a jre on the path. Copy the jre provided or install a jvm |