Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
how do i create a program (through VB6) that can shut down the computer, and then how to i make DOS use it, at a set time?

To Shut down the computer you have to call Windows API. There are six function to shut down Windows, go to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/system_shutdown_functions.asp
and have a look.I do not know if VB6 can create Windows console application. Try looking for something as 'console application', or 'shell application', or 'ms-dos application' in wizard.
In these days I'm writing a very similar program, but using C and Windows API. I think mine will be completed for the next week. Send me your e-mail address and I'll send you it (with source code), when it's ready, or have a look at my site (it's under construction) pizzacode.too.it (It's in Italian).
---------------
remove __NOSPAM__ to get the correct address
giuseppe__NOSPAM__branca@altavista.it

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |