|
 |
asp_web_howto thread: Execute command
Message #1 by "srikieat" <srikieat> on Mon, 19 Feb 2001 07:53:44
|
|
I write asp script and want it to excute by itself. I mean that this script run
automatically. For example, this script will run every 10 miniutes
automatically without anyone run it. Thanks in advance.
Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Mon, 19 Feb 2001 10:09:49 -0000
|
|
transfer your code into a vbscript (.vbs) file
test it with windows script host
make sure vbs files are associated with WSH
schedule it with task scheduler
and if you want to be able to call the file from the browser as well, simply
create an ASP and include the vbs file in it
-----Original Message-----
From: srikieat [mailto:srikieat@s...]
Sent: Monday, February 19, 2001 7:54 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Execute command
I write asp script and want it to excute by itself. I mean that this script
run
automatically. For example, this script will run every 10 miniutes
automatically without anyone run it. Thanks in advance.
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Message #3 by "srikieat" <srikieat@p...> on Wed, 21 Feb 2001 04:57:50
|
|
Where is window script host? I am new in this field. Sorry to disturb you.
Thank you.
> transfer your code into a vbscript (.vbs) file
>
> test it with windows script host
>
> make sure vbs files are associated with WSH
>
> schedule it with task scheduler
>
> and if you want to be able to call the file from the browser as well, simply
> create an ASP and include the vbs file in it
>
> -----Original Message-----
> From: srikieat [mailto:srikieat@s...]
> Sent: Monday, February 19, 2001 7:54 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Execute command
>
>
> I write asp script and want it to excute by itself. I mean that this script
> run
> automatically. For example, this script will run every 10 miniutes
> automatically without anyone run it. Thanks in advance.
>
>
________________________________________________________________
________
> Scottish Enterprise Network
> http://www.scottish-enterprise.com
>
Message #4 by "srikieat" <srikieat@p...> on Wed, 21 Feb 2001 04:52:33
|
|
Sorry, I don't know how to create vbs file. Can you suggest me? Thank you.
> transfer your code into a vbscript (.vbs) file
>
> test it with windows script host
>
> make sure vbs files are associated with WSH
>
> schedule it with task scheduler
>
> and if you want to be able to call the file from the browser as well, simply
> create an ASP and include the vbs file in it
> Sorry, I don't know how to make vbs file. Can you suggest me? Thank you.
> -----Original Message-----
> From: srikieat [mailto:srikieat@s...]
> Sent: Monday, February 19, 2001 7:54 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Execute command
>
>
> I write asp script and want it to excute by itself. I mean that this script
> run
> automatically. For example, this script will run every 10 miniutes
> automatically without anyone run it. Thanks in advance.
>
>
Message #5 by "Ken Schaefer" <ken@a...> on Wed, 21 Feb 2001 17:41:13 +1100
|
|
Change the extension from .asp to .vbs
THen download the WSH docs from http://msdn.microsoft.com/scripting/
About the only thing you need to change is Server.CreateObject() to just
CreateObject()
Cheers
Ken
----- Original Message -----
From: "srikieat" <srikieat@p...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Wednesday, February 21, 2001 4:52 AM
Subject: [asp_web_howto] RE: Execute command
> Sorry, I don't know how to create vbs file. Can you suggest me? Thank you.
>
> > transfer your code into a vbscript (.vbs) file
> >
> > test it with windows script host
> >
> > make sure vbs files are associated with WSH
> >
> > schedule it with task scheduler
> >
> > and if you want to be able to call the file from the browser as well,
simply
> > create an ASP and include the vbs file in it
> > Sorry, I don't know how to make vbs file. Can you suggest me? Thank you.
Message #6 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Wed, 21 Feb 2001 10:08:30 -0000
|
|
just like a js file, but for vbscript
write your script in a text file and save with a vbs extension
-----Original Message-----
From: srikieat [mailto:srikieat@p...]
Sent: Wednesday, February 21, 2001 4:53 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Execute command
Sorry, I don't know how to create vbs file. Can you suggest me? Thank you.
> transfer your code into a vbscript (.vbs) file
>
> test it with windows script host
>
> make sure vbs files are associated with WSH
>
> schedule it with task scheduler
>
> and if you want to be able to call the file from the browser as well,
simply
> create an ASP and include the vbs file in it
> Sorry, I don't know how to make vbs file. Can you suggest me? Thank you.
> -----Original Message-----
> From: srikieat [mailto:srikieat@s...]
> Sent: Monday, February 19, 2001 7:54 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Execute command
>
>
> I write asp script and want it to excute by itself. I mean that this
script
> run
> automatically. For example, this script will run every 10 miniutes
> automatically without anyone run it. Thanks in advance.
>
>
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Message #7 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Wed, 21 Feb 2001 10:05:59 -0000
|
|
To see if WSH is installed, just type WSCRIPT in the command line
-----Original Message-----
From: srikieat [mailto:srikieat@p...]
Sent: Wednesday, February 21, 2001 4:58 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Execute command
Where is window script host? I am new in this field. Sorry to disturb you.
Thank you.
> transfer your code into a vbscript (.vbs) file
>
> test it with windows script host
>
> make sure vbs files are associated with WSH
>
> schedule it with task scheduler
>
> and if you want to be able to call the file from the browser as well,
simply
> create an ASP and include the vbs file in it
>
> -----Original Message-----
> From: srikieat [mailto:srikieat@s...]
> Sent: Monday, February 19, 2001 7:54 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Execute command
>
>
> I write asp script and want it to excute by itself. I mean that this
script
> run
> automatically. For example, this script will run every 10 miniutes
> automatically without anyone run it. Thanks in advance.
>
>
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
|
|
 |