标签:
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