Nov 8, 2002 #1 joeroc501 Technical User Joined Nov 8, 2002 Messages 1 Location 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 Joined Feb 23, 2002 Messages 211 Location 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