通过批处理, 给自己的 PC 安装软件
以下只作参考用而已, 有兴趣的话可以给自己写个来玩
@echo off
title Auto Install
color 1F
::WinRAR
echo.
start /wait \\192.168.1.100\Public\Software\WinRAR_x64.exe /s
if %errorlevel%==0 (echo WinRAR x64 -- OK) else (echo WinRAR x64 -- error)
::Flash播放器
echo.
start /wait \\192.168.1.100\Public\Software\flashplayer_IE.exe /install
if %errorlevel%==0 (echo Flash Player for IE -- OK) else (echo Flash Player for IE -- error)
echo.
start /wait \\192.168.1.100\Public\Software\flashplayer_nIE.exe /install
if %errorlevel%==0 (echo Flash Player not for IE -- OK) else (echo Flash Player not for IE -- error)
::搜狗输入法
echo.
start /wait \\192.168.1.100\Public\Software\Sougoupinyin.exe /S
if %errorlevel%==0 (echo SougouInput -- OK) else (echo SougouInput -- error)
::Foxit Reader
echo.
start /wait \\192.168.1.100\Public\Software\FoxitReader.exe /VERYSILENT
if %errorlevel%==0 (echo Foxit Reader -- OK) else (echo Foxit Reader -- error)
echo.
pause
source : http://www.2cto.com/os/201509/441546.html
没有评论:
发表评论