WindowsServer自动下载并安装软件的脚本

脚本代码

1
2
3
4
5
6
7
8
9
10
11
12
@echo off
echo 开始下载应用程序...
bitsadmin /transfer n https://geshui-data.oss-cn-hangzhou.aliyuncs.com/hf-rpa-setup.exe c:\1.exe
echo 开始安装应用程序...
start /wait c:\1.exe /silent
echo 安装完成

echo 开始下载应用程序...
bitsadmin /transfer n https://geshui-data.oss-cn-hangzhou.aliyuncs.com/vcredist_x86.exe c:\2.exe
echo 开始安装应用程序...
start /wait c:\2.exe /silent
echo 安装完成
文章目录
  1. 1. 脚本代码