Computing.Net > Forums > Programming > Dos programming

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Dos programming

Reply to Message Icon

Name: Goldmember
Date: October 2, 2002 at 04:10:54 Pacific
OS: win xp pro
CPU/Ram: 900/256
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: Giuseppe
Date: October 2, 2002 at 10:08:54 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Dos programming

Dos Programming www.computing.net/answers/programming/dos-programming/6104.html

convert dos program to windows www.computing.net/answers/programming/convert-dos-program-to-windows/10472.html

opening dos program www.computing.net/answers/programming/opening-dos-program/18411.html