Nov 8, 2002 #1 joeroc501 Technical User Nov 8, 2002 1 US I am new to vbscript and would like to know how to open a program and supply username and password. Any ideas?
I am new to vbscript and would like to know how to open a program and supply username and password. Any ideas?
Nov 10, 2002 #2 sfriday IS-IT--Management Feb 23, 2002 211 DE can you run the program by entering the user name an password after it. if you can then you could Set wsh = Wscript.CreateObject("Wscript.Shell" wsh.run "progam.exe fredbloggs password" If not then you could load the program and then use sendkeys to send the username and password. Dim wsh set wsh = Wscript.CreateObject("Wscript.Shell" wsh.run "Notepad" Wscript.Sleep(2000) wsh.AppActivate "Untitled - Notepad" wsh.SendKeys "fredbloggs" wsh.SendKeys "{TAB}" wsh.SendKeys "password" Regards Steve Friday Upvote 0 Downvote
can you run the program by entering the user name an password after it. if you can then you could Set wsh = Wscript.CreateObject("Wscript.Shell" wsh.run "progam.exe fredbloggs password" If not then you could load the program and then use sendkeys to send the username and password. Dim wsh set wsh = Wscript.CreateObject("Wscript.Shell" wsh.run "Notepad" Wscript.Sleep(2000) wsh.AppActivate "Untitled - Notepad" wsh.SendKeys "fredbloggs" wsh.SendKeys "{TAB}" wsh.SendKeys "password" Regards Steve Friday