Reputation: 31
So I'm wondering if there is a way to log onto a site automatically using a batch file, so i can just click on the file and it will open the browser, site and just log me on, without having to manually log on. For example if i wanted to automatically log on to my Bing.com account, i could just click on the batch file and it would open the browser and log me on. I have no clue where to start on trying to figure this out so i could really use some help.
Upvotes: 2
Views: 4919
Reputation: 1955
There could be an indirect way in Google Chrome:
Find the login page of the website where you put your login and password.
Try to get the id or html tag of the login and password elements of the page.
Here is a sample to put your credentials in the fields of the page:
document.getElementById('login').value="*[login]*"
document.getElementById('password').value="*[password]*"
document.getElementsByTagName('input')[3].click()
In the manifest of extension file or in the @include
of user.js file, define the login page of website to let the extension work just in that page.
Install the extension, here is a help how to install chrome extension manually
Now you can run chrome from terminal or .batch file to open the login page in chrome browser. take a look at how to open chrome from command line
Done!
Upvotes: 1
Reputation: 1955
There is a way that works in IE :
Upvotes: 0