launch a process on windows 2008

Hello all!

There is a webpage I have to run every day on a windows 2008 R2 (Server A). This page does not require any interaction with the user, it just launches a process remotelly (Server B, from a vendor) and then it sends my boss an email with a report.

The problem is that I need to run that page, from the specific IP address on Server A and I dont know how to schedulle that, lets say "run www.blabla.com every day at 6 PM"

Any ideas?

Thanks!
pvg1975Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

serchlopCommented:
Here is an easy example of how to do.

http://mohammednv.wordpress.com/2008/01/08/how-to-create-scheduled-tasks-for-aspx-files/

it applies to any page
Adam BrownSr Solutions ArchitectCommented:
use iexplore "www.blabla.com"

That will open Internet Explorer and navigate to the website in quotes immediately after it opens. Might not run if a user isn't logged in, though.
serchlopCommented:
You can specify the user to use with the task and it will run even without a logged on user.
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

serchlopCommented:
If no user is logged on the server you will not view the page, but can view the process in task manager.
NetfloCommented:
Hi pvg1975,

Here's one way, which I've used before and works, credit to the website: http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/AdminTips/IEandExplorer/RunningIEfromthecommandline.html

Create a new text file that contains the following line:

@start "" /b "C:\Program Files\Internet Explorer\iexplore.exe" %*

Rename the file e.bat

Copy this file to your profile folder or separate folder.

Now you can open a command prompt window and type the following:

e www.domain.co.uk

This will start Internet Explorer and open the URL for www.mtit.com (my own website) or any other URL you specify


For this last step you can actually batch script that last task too, so a scheduled task will run "e www.domain.co.uk"
Two references to your own website removed.

Alan Hardisty
EE Zone Advisor

Open in new window

pvg1975Author Commented:
Thanks you all for the answers, but it looks like all of them require to login to the server and execute a command. I was thinking on something more like a running service. Something that will browse the page even if Im not connected thru a remote connection
serchlopCommented:
You can make it a service, but the service is not what will solution your problem if get it.

A service will maintain the internet explorer and the web page open. But it will not refresh the web page and make the email send from your server.

What will solution your problem will create a schedule task.

You don't have to be logged on the server to run the task it will run even when nobody log on the server.

Try it.

The step are.

Enter Schedule Task (it should be in administrative tools or run taskschd.msc)
In Action Panel select Create a new task
In name use any for example OpenPage
You can use your user that created the task or another one to run the task
Run whether user is logged on or not
Leave without mark Do not store password
In Tab triggers, - New - Select when the task will be ran
In actions - New - In program select Iexplore.exe and in arguments http://www.webserver.com/
Usually iexplore.exe is located in “C:\Program Files\Internet Explorer\IExplore.exe”
Then OK until task were created

Change www.webserver.com to whatever you need. The task will run iexplorer and open the web page you put. You can create another task ten minutes later to finish iexplore.exe with the next command

taskkill /IM iexplore.exe

This second task have to use the same username that the first to terminate the iexplore.exe process.

You only have to log on when you create the task. To get the task run be logged on is not necessary.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
serchlopCommented:
I use this in a way you want and it work very fine.
pvg1975Author Commented:
Thanks, it works perfect!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.