Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using VFP to stop Services on a WIN2000 Server
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00984515
Message ID:
00984772
Views:
21
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"
>What's wrong with running iisreset?
>Of course another method is to use some good ole command line stuff like:
>
>net start >stopservices.bat
>
>This will give you a list of all services that are started. You can then get the correct names for the services and issue. Here's an extract of what that file will look like:
>
>These Windows services are started:
>
> Application Layer Gateway Service
> Ati HotKey Poller
> Automatic Updates
> Bluetooth Service
> Cisco Systems, Inc. VPN Service
> COM+ Event System
> COM+ System Application
> Computer Browser
> cpqdmi
> Cryptographic Services
> IIS Admin
> Infrared Monitor
> Insight Local Alerter
> Insight Web Agent
> IPSEC Services
>
>etc, etc etc.
>
>To stop a service, you can do so from the command prompt using "net stop"
>So, to stop iis and restart, you might create a batch file that does the following:
>
>net stop "IIS Admin" /y
>net start "IIS Admin"
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform