WPS云服务启动不了解决方法

@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit cd /d "%~dp0"
echo kill
taskkill /f /im wps* /t

set InstallReg=HKEY_CURRENT_USER\Software\Kingsoft\Office\6.0\Common

For /f "tokens=1,2,* " %%i in ('Reg Query "%InstallReg%" /v "InstallRoot"') do Set instPath=%%k

set office6Path=%instPath%\office6
set wpsFile=%office6Path%\wps.exe
set wpsDstName=wps2.exe
set wps2File=%office6Path%\%wpsDstName%

if not exist "%wps2File%" (
	copy "%wpsFile%" "%wps2File%" >nul
)

taskkill /f /im %wpsDstName% >nul
taskkill /f /im wpsoffice.exe >nul
taskkill /f /im wpscloudsvr.exe >nul
taskkill /f /im wps.exe >nul

start /d "%office6Path%" %wpsDstName% /qingbangong
start /d "%office6Path%" %wpsDstName%


Reg Add "HKEY_CURRENT_USER\Software\Kingsoft\Office\6.0\plugins\kcef" /v "ForceUse49" /t REG_SZ /d "false" /f >nul

变成两个bat文件运行一下

你可能感兴趣的:(WPS,wps)