码迷,mamicode.com
首页 > Windows程序 > 详细

Windows ftp脚本和RSCD agent自动安装脚本

时间:2016-03-08 09:24:51      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:

Windows ftp脚本 和bladelogic RSCD Agent自动安装脚本

@echo off
if %PROCESSOR_ARCHITECTURE:~-1%==4 (
netsh advfirewall firewall add rule name="all tcp 4750" dir=in protocol=tcp localport=475 action=allow
netsh advfirewall firewall add rule name="all tcp 21" dir=in protocol=tcp localport=21 action=allow
netsh advfirewall firewall add rule name="all tcp 20" dir=in protocol=tcp localport=20 action=allow
echo open 10.200.251.47 >c:\autoftp.cfg
echo user >>c:\autoftp.cfg
echo user >>c:\autoftp.cfg
echo bin >>c:\autoftp.cfg
echo prompt >>c:\autoftp.cfg
echo cd agent/windows >>c:\autoftp.cfg
echo lcd c:\ >>c:\autoftp.cfg
echo mget RSCD85-SP1-WIN64.msi exports >>c:\autoftp.cfg
echo bye >>c:\autoftp.cfg
ftp -v -s:c:\autoftp.cfg
del c:\autoftp.cfg
echo 正在安装BLadeLogic Agent 8.5请稍候...
c:\RSCD85-SP1-WIN64.msi /quiet /norestart
copy /Y c:\exports C:\Windows\rscecho BLadeLogic Agent 8.5安装完成。) 
else (
netsh firewall set portopening TCP 4750 ENABLE
netsh firewall set portopening TCP 20 ENABLE
netsh firewall set portopening TCP 21 ENABLE
set ftpfilename=autoftp.cfg
echo open 10.200.251.47 >c:\autoftp.cfg
echo user >>c:\autoftp.cfg
echo user >>c:\autoftp.cfg
echo bin >>c:\autoftp.cfg
echo prompt >>c:\autoftp.cfg
echo cd agent/windows >>c:\autoftp.cfg
echo lcd c:\ >>c:\autoftp.cfg
echo mget RSCD85-SP1-WIN32.msi exports >>c:\autoftp.cfg
echo bye >>c:\autoftp.cfg
ftp -v -s:c:\autoftp.cfg
del c:\autoftp.cfg
echo 正在安装BLadeLogic Agent 8.5请稍候...
c:\RSCD85-SP1-WIN32.msi /qn /norestart
copy /Y c:\exports C:\Windows\rscecho BLadeLogic Agent 8.5安装完成)

 

Windows ftp脚本和RSCD agent自动安装脚本

标签:

原文地址:http://www.cnblogs.com/lizhaoxian/p/5252737.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!