Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-21-2004, 11:10 PM   #1 (permalink)
Caleb.Carlton
Registered User
 
Join Date: Oct 2004
Posts: 7
Caleb.Carlton is on a distinguished road
Shut down XP

How would I go about making a C++ program that shuts down Windows XP.
What's the simplest way possible of doing this?

Thanks,
Caleb

Last edited by Caleb.Carlton; 12-21-2004 at 11:34 PM.
Caleb.Carlton is offline   Reply With Quote
Old 12-22-2004, 03:13 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
can you just issue a system command?
Code:
shutdown -s
type shutdown in the command prompt and you will see all your options.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 07:38 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting