1、新建bat文件,写入一下内容
@echo off & title 启动openOffice服务
start "" /d "C:\Program Files (x86)\OpenOffice 4\program" "soffice.exe" -headless -accept="socket,host=0.0.0.0,port=8100;urp;" -nofirststartwizard
exit
2、放进此文件夹
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
此方式开机会闪退一下下
另个没有闪退的命令
@echo off & title 启动openOffice服务
cd C:\Program Files (x86)\OpenOffice 4\program
soffice -headless -accept="socket,host=0.0.0.0,port=8100;urp;" -nofirststartwizard