Re: script to login and run command
From: Mike Brearley (mike_brearleyDONTDOIT_at_NOSPAMhotmail.com)
Date: 08/04/04
- Next message: GeekBoy: "How to select text for a user in textarea?"
- Previous message: Torgeir Bakken \(MVP\): "Re: Can I detect if VbScript is executed interactivly?"
- In reply to: Mike Brearley: "script to login and run command"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 4 Aug 2004 12:31:05 -0400
Well, I found out the url that launches an update doesn't require a login so
I was just able to use the following, any comments on a better way to do
what I'm doing in the script?
-----------------------
Dim objExp
set objExp = CreateObject("InternetExplorer.Application")
objExp.Navigate
"http://myhostserver/stats/awstats.pl?config=mydomain&update=1"
objExp.Visible = 0
Do Until objExp.Busy = false
WScript.Sleep 10000
Loop
set objExp = Nothing
-----------------------
-- Posted 'as is'. If there are any spelling and/or grammar mistakes, they were a direct result of my fingers and brain not being synchronized or my lack of caffeine. Mike Brearley "Mike Brearley" <mike_brearleyDONTDOIT@NOSPAMhotmail.com> wrote in message news:OLSCaSZeEHA.3792@TK2MSFTNGP09.phx.gbl... > How can I run a script that will log into a website and launch a specific > url on that site that executes a command to update stats? > > Basically, right now I have to log into the site manually, go to the stats > page and click update now. I have the url for the update now link and if > I'm logged into the site and I put that url in my browser it runs the > update. But I'd like to set up a script that will do this for me. > > The site uses asp for the login process. > > -- > Posted 'as is'. If there are any spelling and/or grammar mistakes, they > were a direct result of my fingers and brain not being synchronized or my > lack of caffeine. > > Mike Brearley > >
- Next message: GeekBoy: "How to select text for a user in textarea?"
- Previous message: Torgeir Bakken \(MVP\): "Re: Can I detect if VbScript is executed interactivly?"
- In reply to: Mike Brearley: "script to login and run command"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|