Saved Bookmarks
| 1. |
Solve : Batch file to login to my mail id? |
|
Answer» Hi All, Is this possible in DOS? Is it possible for us to send inputs to webpage through command line. Not that I'm aware of. You might TRY VBScript which has several WAYS of handling this. One would be to fire up the browser and send keystrokes to the rendered page. This can be successful, but timing is everything and any misfire can produce unexpected results. A second way would be to create an instance of the browser where you can script both the browser and the rendered page. You can use this little snippet as a template which shows off the second method: Code: [Select]Set IE = CreateObject("InternetExplorer.Application") Set WshShell = WScript.CreateObject("WScript.Shell") IE.Navigate "http://www.yahoomail.com" IE.Visible = True Do WScript.Sleep 5000 Loop While IE.Busy IE.Document.All.Item("login").Value = "username" 'Change username as needed IE.Document.All.Item("passwd").Value = "password" 'Change password as needed WshShell.SendKeys "{ENTER}" Good luck. @Balwinder Singh: START your own thread and please be more specific. This is probably nothing but I'm tired of chasing shadows around every corner. |
|