制作启动脚本进行软件安装

以安装360天擎为例,制作启动脚本,开机进行软件检查、系统版本检查并安装软件


echo off

cls
:firstcheck
cd c:\
if exist "C:\Program Files (x86)\360\360Safe\360Safe.exe" (goto end) else (goto check)
:check
if exist "C:\360setupfile\tianqing\no.txt" (goto end) else (goto winver)
:winver
ver | find "6.1." && goto checkagain
goto end
:checkagain
mkdir C:\360setupfile\tianqing
tasklist | find "360EntClient.exe" || goto download360
goto end
:end
exit
:download360
net use \\10.100.2.80\标准软件\360天擎 /persistent:yes
copy \\10.100.2.80\标准软件\360天擎\360skylarinst-winc(tianqing.qkcorp.qiku.com_80).exe C:\360setupfile\tianqing\360skylarinst-winc(tianqing.qkcorp.qiku.com_80).exe /y
goto setup360
:setup360
cd C:\360setupfile\tianqing
"360skylarinst-winc(tianqing.qkcorp.qiku.com_80).exe" /s
cd. >C:\360setupfile\tianqing\no.txt
goto end

你可能感兴趣的:(AD与邮箱)