|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I don't know how can explain... Can I start a vbs like a service? I have a vbs that generate a txt and I have to run it every 10min. Can I put it in "Windows Services"? I don't want to schedule this execution. How can I do this -- Rodrigo Ferreira Regards from Brazil |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
You may accomplish this using Scheduled Tasks via Control Panel.
After setting up a task select the Schedule tab, then Advanced button. Option is on this window to repeat every x minutes. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
You can create your own service, just follow the steps at link below..
remember that if you want a vbscript to run as a service, Step 5 at link below should point to cscript/wscript.exe (typically c:\windows\system32\cscript.exe) and pass your script name along with full path as argument to cscript.exe for example, if you have a script as c:\scripts\myscript.vbs, you can use the application as: c:\windows\system32\cscript.exe c:\scripts\myscript.vbs and yes, your should code your script in a way that it executes a set of code every 10mins as your requirement..(you can do that in a forever while loop and include a statement wscript.sleep statement to suspend exection till given time) http://support.microsoft.com/kb/137890 -- Umesh "Old programmers never die. They just terminate and stay resident." "Rodrigo Ferreira" wrote: > Hi, > I don't know how can explain... > > Can I start a vbs like a service? > > I have a vbs that generate a txt and I have to run it every 10min. Can I put > it in "Windows Services"? > I don't want to schedule this execution. > > How can I do this > > -- > > Rodrigo Ferreira > Regards from Brazil > > > |
|
![]() |
| Outils de la discussion | |
|
|