2022年5月03日
-
::下載迅雷安裝包:
:: %~dp0 的意思是當前腳本所在路徑
set curpath=%~dp0
:: 切換到當前腳本路徑,後面下載文件默認到當前路徑。
cd /d %curpath%
set exename=xunlei.exe
set downurl=https://xmp.down.sandai.net/xmp/XMPSetup6.1.7.810xmpdl.exe
:: 使用powershell附帶的curl命令
powershell curl -o "%exename%" "%downurl%"