I have a vbscript that launch telnet, login and execute a command in our unix box:
set fs = CreateObject ("Scripting.FileSystemObject")
Set f = fs.OpenTextFile("C:\pwd.txt", 1)
upwd = f.ReadAll
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "telnet unix1"
WScript.Sleep 10000
WshShell.Sendkeys "myusename"
WshShell.Sendkeys "{ENTER}"
WScript.Sleep 10000
WshShell.Sendkeys pwd
WshShell.Sendkeys "{ENTER}
.............................
On some of our users, this script will launch minimized applications such as Excel, word, Lotus notes etc.
Any help will be greatly apprecciated.
set fs = CreateObject ("Scripting.FileSystemObject")
Set f = fs.OpenTextFile("C:\pwd.txt", 1)
upwd = f.ReadAll
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "telnet unix1"
WScript.Sleep 10000
WshShell.Sendkeys "myusename"
WshShell.Sendkeys "{ENTER}"
WScript.Sleep 10000
WshShell.Sendkeys pwd
WshShell.Sendkeys "{ENTER}
.............................
On some of our users, this script will launch minimized applications such as Excel, word, Lotus notes etc.
Any help will be greatly apprecciated.