PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > VBS like a Service
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
VBS like a Service

Réponse
 
LinkBack Outils de la discussion
Vieux 05/09/2007, 21h42   #1
Rodrigo Ferreira
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut VBS like a Service

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


  Réponse avec citation
Vieux 07/09/2007, 13h58   #2
emailLarryS@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VBS like a Service

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.

  Réponse avec citation
Vieux 09/09/2007, 19h40   #3
Umesh Thakur
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: VBS like a Service

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
>
>
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h33.


Édité par : vBulletin® version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08779 seconds with 11 queries