Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using VFP to stop Services on a WIN2000 Server
Message
 
 
À
08/02/2005 12:15:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00984515
Message ID:
00984774
Vues:
16
I like this better
oShell = CREATEOBJECT("Shell.Application")
? oShell.IsServiceRunning("ServiceName")
? oShell.ServiceStart("ServiceName",.F.)
? oShell.ServiceStop("ServiceName", .F.)
>To elaberate on John's post. If done in Fox.
>
>
>* Stop IIS.
>RUN cmd /c NET STOP "IIS Admin Service" /Y
>
>* Start IIS.
>RUN cmd /c NET START "World Wide Web Publishing Service"
>RUN cmd /c NET START "Simple Mail Transport Protocol (SMTP)"
>RUN cmd /c NET START "FTP Publishing Service"
>RUN cmd /c NET START "IIS Admin Service"
>
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform