Monday, April 02, 2012

Start multiple Putty sessions using DOS Batch file

 

There is a requirement for me open up multiple sessions of same HP Unix Host server. I just automate this using simple DOS Batch file below;

@echo off
set uname=siva
set pwd=#`F$(*&!-=~

start /max  C:\Windows\System32\putty.exe -load "D1- Session1" -l %uname% -pw %pwd%  
start /max  C:\Windows\System32\putty.exe -load "D1- Session2" -l %uname% -pw %pwd%
start /max  C:\Windows\System32\putty.exe -load "D1- Session3" -l %uname% -pw %pwd%  
start /max  C:\Windows\System32\putty.exe -load "D1- Session4" -l %uname% -pw %pwd%
start /max C:\Windows\System32\putty.exe –load  "D1–Session5" -l %uname% -pw %pwd%

@echo on