Discussion Locked

restart ? shutdown ?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi there
can you tell me , in vb 6.0 ... how can add an option to restart Windows and to shutdown windows 98 or ME !

i tried all books, but no mention . i need this for my schoool project . our teacher does not want to tell. who knowif the teacher also knows ! well anyways m plz help me .!!

thanks in advance

5 replies

by ebarfie1

I dont know VB, But I can tell you the command to accomplish this.

One-click shutdown

C:\windows\rundll.exe\user.exe\exitwindows

One-click restart

\windows\rundll.exe\user.exe\exitwindowsexec

If the C: drive is not your local drive, replace C with the correct letter of the hard drive.

Hope this is of some help.

EB

This discussion is closed to new replies.