@echo off if not "%1" == "install" ( if not "%1" == "uninstall" ( if not "%1" == "start" ( if not "%1" == "stop" ( echo service_windows.bat install ^| uninstall ^| start ^| stop echo depends on Microsoft.NET Framework 4 goto out )))) echo ^ > %~dp0local\service.xml echo ^O2SERVER^<^/id^> >> %~dp0local\service.xml echo ^O2SERVER SERVICE^<^/name^> >> %~dp0local\service.xml echo ^O2OA Platform Service.^<^/description^> >> %~dp0local\service.xml echo ^%~dp0start_windows.bat^ >> %~dp0local\service.xml echo ^ >> %~dp0local\service.xml echo ^ >> %~dp0local\service.xml copy %~dp0commons\winsw.exe %~dp0local\service.exe %~dp0local\service.exe %1 :out