1. 程式人生 > >簡單bat腳本

簡單bat腳本

where let name tro man param proc ike tor

hwf.bat:

set GAP_HOME=%~dp0\..

::copy "%JAVA_HOME%\bin\javaw.exe" "%JAVA_HOME%\bin\HWF.exe" > nul

javaw -classpath %GAP_HOME%\lib\* package.ApplicationExecutor %1 %2 %3 %4 %5 %6 %7 %8 %9


start_hwf.bat:

bin\hwf.bat
--params examples/hwf_workflow.conf stop_hwf.bat: set hwf=commandLine like %%package.ApplicationExecutor%%
and name like %%javaw%% wmic process where %hwf% delete > nul pause

簡單bat腳本