EAS客户端强制更新方法原创
金蝶云社区-阿竹
阿竹
2人赞赏了该文章 1,439次浏览 未经作者许可,禁止转载编辑于2020年07月03日 14:02:14

@重新更新客户端的批处理,需要复制到\kingdee\eas\client目录执行

@by Andrew

@echo off

@REM 删除文件

dir *.jnlp 

if ERRORLEVEL 1 (

echo *.jnlp 文件不存在

) else (

del *.jnlp

if exist update.properties (

del update.properties

)

if exist  resource.lst (

del resource.lst

)

if exist update.properties (

del update.properties

)

if exist ProxyCache.properties (

del ProxyCache.properties

)

if exist onDemandTrace.properties (

del onDemandTrace.properties

)

if exist apploader.lst (

del apploader.lst

)

@REM 删除文件夹

if exist logs (

%SystemRoot%\system32\wbem\wmic.exe process where name="javaw.exe" list full

if ERRORLEVEL 1 (

echo javaw.exe 进程不存在

) else (

%SystemRoot%\system32\wbem\wmic.exe process where name="javaw.exe" call terminate


rmdir /s/q logs

rmdir /s/q cache

rmdir /s/q logs

rmdir /s/q UninstallerData

rmdir /s/q .\lib\sp

rmdir /s/q .\metas\sp

)


@REM 启动客户端

cd bin

start client.bat

----------------------------------------------------------分割线--------------------------------------------------------

以上复制到记事本,保存后关闭,把文件名.txt后缀改为文件名.bat,放到EAS客户端的“\kingdee\eas\client”目录下执行,EAS客户端自动更新并重启。

赞 2