Is it possible...Batch Files Question

Soldato
Joined
14 Oct 2007
Posts
2,738
Is it possible to create a .bat file where when you click it:

1) brings up 2 websites and 2 programs at the same time

and

2) Brings up a web-site and automatically fills in login details for you

If this is possible, how?
 
The first is definately possible, all you would need to do is:

@Echo off

start http://google.com
start http://news.bbc.co.uk

start "" "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.exe"
start "" "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.exe"

The above will run your default browser (whatever you have set to handle http requests) and will start excel and word. As for the second part, there is no way within batch files that I am aware of but I'm sure someone else will be along if there is!
 
You might be able to pass some of the log in details in the URL.

If not AutoIT script has a function for sending keystrokes, you will however have to do some experimenting with where the cursor starts.
 
I need 1 more small favour please...

I am trying to create several batch files for work, I have used the example that Poolybit provided for me and changed it so it opens up 4 programs, 5 documents and my e-mail client so I can open up everything I need when I start my shift at work, but now I am trying to create one where when you run the batch file, you get a list of names:
eg/
1. Person 1
2. Person 2
3. Person 3
4. Person 4
5. Person 5
etc etc

then if you wanted to e-mail person 3 for example, select option 3, and it opens up a 'New E-mail' window instead of going to Outlook, clicking New, finding the person's e-mail address you want to e-mail, so the batch file will automatically open up the window and have the person's e-mail address in and ready to send once you've type in your message. Hope that makes sense.

Is it possible/easy to do?
 
Back
Top Bottom