自动脚本工具.zip

时间:2023-01-23 10:51:26
【文件属性】:
文件名称:自动脚本工具.zip
文件大小:2.3MB
文件格式:ZIP
更新时间:2023-01-23 10:51:26
脚本 setlocal setlocal DisableDelayedExpansion set "param=%~f0" cmd /v:on /c echo(^^!param^^!| findstr /R "[| ` ~ ! @ %% \^ & ( ) \[ \] { } + = ; ' , |]*^" endlocal if %errorlevel% EQU 0 ( %ErrLine% echo Disallowed special characters detected in file path name. echo Make sure file path name do not have following special characters, echo ^` ^~ ^! ^@ %% ^^ ^& ^( ^) [ ] { } ^+ ^= ^; ^' ^, goto MASend ) ::======================================================================================================================================== if %winbuild% LSS 7600 ( %ErrLine% echo Unsupported OS version Detected. echo Project is supported only for Windows 7/8/8.1/10 and their Server equivalent. goto MASend ) ::======================================================================================================================================== : ================================================ : Self-elevate passing args and preventing loop : Written by @AveYo aka @BAU : ================================================ setlocal reg query HKEY_USERS\S-1-5-20 1>nul 2>nul && goto GotPrivileges_1 If "%ElevError%"=="Y" goto Elev_Err_1 set "args="%~f0" %*" & call set "args=%%args:"=\"%%" echo Initializing... powershell -c "start cmd -ArgumentList '/c set ElevError=Y& call %args%' -verb runas" && exit /b :Elev_Err_1 %ErrLine% echo Right click on this file and select 'Run as administrator' goto MASend :GotPrivileges_1 endlocal
【文件预览】:
激活脚本.cmd

网友评论