@echo off :redial C:\somepath\putty.exe -load saved_session_name -ssh some_username@some_host -pw some_password goto redial