forked from rujor/false
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupdateOtherGit.bat
More file actions
37 lines (31 loc) · 1.62 KB
/
updateOtherGit.bat
File metadata and controls
37 lines (31 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
setlocal
call :DownloadAndRename "https://raw.githubusercontent.com/smallfawn/QLScriptPublic/main/yingsheng.js" "yingsheng.js" "ys.js"
call :DownloadAndRename "https://raw.githubusercontent.com/smallfawn/QLScriptPublic/main/akrd.js" "akrd.js" "akrd.js"
call :DownloadAndRename "https://raw.githubusercontent.com/smallfawn/QLScriptPublic/main/nhsy.js" "nhsy.js" "nhsy.js"
call :DownloadAndRename "https://raw.githubusercontent.com/smallfawn/QLScriptPublic/main/utils.js" "utils.js" "utils.js"
call :DownloadAndRename "https://raw.githubusercontent.com/smallfawn/QLScriptPublic/main/sendNotify.js" "sendNotify.js" "sendNotify.js"
call :DownloadAndRename "https://raw.githubusercontent.com/smallfawn/QLScriptPublic/main/sfsyV2.js" "sfsyV2.js" "sfsyV2.js"
call :DownloadAndRename "https://raw.githubusercontent.com/smallfawn/QLScriptPublic/main/suboer.js" "suboer.js" "suboer.js"
call :DownloadAndRename "https://raw.githubusercontent.com/smallfawn/QLScriptPublic/main/yingsheng_v2.js" "yingsheng_v2.js" "yingsheng_v2.js"
call :DownloadAndRename "https://raw.githubusercontent.com/smallfawn/QLScriptPublic/main/立白VIP.js" "lb.js" "lb.js"
call :DownloadAndRename "https://raw.githubusercontent.com/YourAhTzu/ac/main/sgs.js" "sgs.js" "sgs.js"
exit /b
:DownloadAndRename
rem 参数1:要下载的文件URL
rem 参数2:保存路径
rem 参数3:新文件名
set "url=%~1"
set "outputPath=%~2"
set "newName=%~3"
curl --proxy 127.0.0.1:7890 -o "%outputPath%" "%url%"
if %errorlevel% neq 0 (
echo 下载失败!
exit /b
)
if "%newName%" neq "%outputPath%" (
del "%newName%"
rename "%outputPath%" "%newName%"
echo 文件已下载并重命名为 %newName%
)
exit /b