Restarting server

J

John

Hi

How can I restart server from within my vb.net winform app? Hopefully this
will also gracefully shut the vb.net app.

Thanks

Regards
 
C

Cor Ligthert[MVP]

John,

It would in my idea be crazy that you would be able to restart a server from
a VB.net winform application.

Even as it would be possible to close it, then there is not any connection
anymore to restart it again.

Luckily that is in my idea impossible

Cor
 
C

Cowboy \(Gregory A. Beamer\)

If you have the proper permissions, you can use a process object to issue
commands for restart. You can also set up a WMI script for restart and call
it in the same manner. As Cor has mentioned, you need to be careful with
this type of application, as it can be dangerous to restart from an
application.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

*********************************************
| Think outside the box |
*********************************************
 
H

Herfried K. Wagner [MVP]

John said:
How can I restart server from within my vb.net winform app? Hopefully this
will also gracefully shut the vb.net app.

I suggest to describe the scenario in more detail.

Are you attempting to restart the machine the application is running on or
do you want to remotely restart a server?
 
J

John

App is running on the same Microsoft Small Business Server 2003 server.

Thanks

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top