I have to start many applications on the start of my day. Now I've written a .bat file to do this all automatically. The only thing that is not working is starting a chrome instance with javascript code in the .bat file.
What I want to do is to start chrome (or IE): start chrome url
. But now I don't want to put there an "URL" but some JavaScript like below. If I run this in an empty addressbar in Chrome it works.
start chrome javascript:window.open('http://websiteurl.com/').ready(Button.clickIt());
If I do this using the CMD (or .bat file) then it doesn't work. It opens an empty chrome instance.
Is there any way to achieve this?
Few things I found out:
- When copy/pasting
javascript:window.open('http://websiteurl.com/').ready(Button.clickIt());
in Chrome, it removes thejavascript:
part. Maybe this happens also when opening it using CMD? - Internet Explorer gives much more problems. It will prompt you to download files sometimes. No clue why.