返回
首页 > 数码科技

Office文档如何设置为只读模式?

时间: 2023-01-23

如需激活可以写代码运行即可:ZOUoffice教程网

话不多说,直接上干货!首先新建txt文本文档,然后复制以下代码!ZOUoffice教程网

@echo offZOUoffice教程网

(cd /d “%~dp0”)&&(NET FILE||(powershell start-process -FilePath ‘%0’ -verb runas)&&(exit /B)) >NUL 2>&1ZOUoffice教程网

title Office 2019 Activator r/PiracyZOUoffice教程网

echo Converting… & mode 40,25ZOUoffice教程网

(if exist “%ProgramFiles%/Microsoft Office/Office16/ospp.vbs” cd /d “%ProgramFiles%/Microsoft Office/Office16”)&(if exist “%ProgramFiles(x86)%/Microsoft Office/Office16/ospp.vbs” cd /d “%ProgramFiles(x86)%/Microsoft Office/Office16”)&(for /f %%x in (‘dir /b …/root/Licenses16/ProPlus2019VL*.xrm-ms’) do cscript ospp.vbs /inslic:"…/root/Licenses16%%x" >nul)&(for /f %%x in (‘dir /b …/root/Licenses16/ProPlus2019VL*.xrm-ms’) do cscript ospp.vbs /inslic:"…/root/Licenses16%%x" >nul)ZOUoffice教程网

cscript //nologo ospp.vbs /unpkey:6MWKP >nul&cscript //nologo ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >nul&set i=1ZOUoffice教程网

:serverZOUoffice教程网

if %i%==1 set KMS_Sev=kms7.MSGuides.comZOUoffice教程网

if %i%==2 set KMS_Sev=kms8.MSGuides.comZOUoffice教程网

if %i%==3 set KMS_Sev=kms9.MSGuides.comZOUoffice教程网

cscript //nologo ospp.vbs /sethst:%KMS_Sev% >nulZOUoffice教程网

echo %KMS_Sev% & echo Activating…ZOUoffice教程网

cscript //nologo ospp.vbs /act | find /i “successful” && (echo Complete) || (echo Trying another KMS Server & set /a i+=1 & goto server)ZOUoffice教程网

pause >nulZOUoffice教程网

exitZOUoffice教程网

保存为bat格式!也就是把后缀名TXT改为bat!ZOUoffice教程网

打开office任意一款软件,运行bat!等待bat加载完成。重新打开office任意一款软件,就可以了!ZOUoffice教程网

猜你喜欢

版权所有 Copyright©2023 餐饮美食网 版权所有

粤ICP备15109582号

联系邮箱:187348839@qq.com