用批处理禁用文件权限, 右键新建一个bat,粘贴
@echo off&pushd %~dp0 %1 %2 mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :runas","","runas",1)(window.close)&&exit :runas icacls 路径\xxx.exe /deny Everyone:F pause
还原权限代码:
@echo off&pushd %~dp0 %1 %2 mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :runas","","runas",1)(window.close)&&exit :runas icacls 路径\xxx.exe /reset pause
发表回复