【文件属性】:
文件名称:下载脚本地址.zip
文件大小:229B
文件格式:ZIP
更新时间:2023-01-23 10:49:15
脚本
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
【文件预览】:
下载地址.txt