Skip to content

Instantly share code, notes, and snippets.

@johngh
Created December 14, 2012 18:29
Show Gist options
  • Save johngh/4287500 to your computer and use it in GitHub Desktop.
Save johngh/4287500 to your computer and use it in GitHub Desktop.
VBS script to launch a list of putty sessions (called by their saved session name in PuTTY)
Set objShell = CreateObject("WScript.Shell")
dim hosts
hosts = "host1 host2 host3 host4 host5 host6"
dim host
for each host in split(hosts)
objShell.Exec "C:\Program Files\PuTTY\PUTTY.EXE -load " + host
next
@mohammedbilalahmed0044
Copy link

this file is perfect and i have successfully logged in to putty terminal

now i need to execute the below command

cd /u01

i need it to be done automaticaaly when i open vb script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment