x404.co.uk http://x404.co.uk/forum/ |
|
Batch files http://x404.co.uk/forum/viewtopic.php?f=4&t=1720 |
Page 1 of 1 |
Author: | pg2114 [ Sun Jul 12, 2009 8:45 pm ] | |||||||||
Post subject: | Batch files | |||||||||
Hello all, I have created a very simple batch file this evening to open three Internet Explorer webpages simultaneously. The code from this batch file is as follows, with the numbers representing different websites.
I am looking for one of the websites in the batch file to actually launch on my second monitor. I have UltraMon, which means I can move the windows between monitors with a single click, but it would just finish off the script if it happened automatically. My initial thoughts were to set Internet Explorer's window location using a .reg file, open one of the sites, and change it back using another .reg file before launching the other two sites. I hit a brick wall with this because the window location is stored in a complicated binary format, which I cannot understand. Is there a simple way of doing this, please? Thanks, Peter. |
Author: | saspro [ Mon Jul 13, 2009 12:04 pm ] | |||||||||
Post subject: | Re: Batch files | |||||||||
You need to make a vbs file with the following code in then launch that from the batch file
Scripts are here |
Author: | pg2114 [ Mon Jul 13, 2009 9:08 pm ] |
Post subject: | Re: Batch files |
That's brilliant, thanks, saspro. I'll give that a go later in the week and let you know how I get on! Thanks again, Peter. |
Author: | big_D [ Tue Jul 14, 2009 8:24 am ] |
Post subject: | Re: Batch files |
You need to adjust the "start C:\Test.vbs" to include the command line parameters you need. E.g. start C:\Test.vbs iexplore 2 or start C:\Test.vbs iexplore http://www.test.com 2 Look at the text in the dialog box. ![]() |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |