Important alert: (current site time 7/15/2013 5:59:34 PM EDT)
 

VB icon

^!Now you can reboot pc from ur program

Email
Submitted on: 2/6/2004 5:26:19 AM
By: my name is Nitin Jindal (from Panchkula,Haryana)  
Level: Intermediate
User Rating: By 16 Users
Compatibility: C, C++ (general)
Views: 19970
(About the author)
 
     * Now you can reboot pc from ur program PLEASE VOTE FOR ME !!! Nitin Jinfal */
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
//**************************************
// Name: ^!Now you can reboot pc from ur program
// Description:*Now you can reboot pc from ur program
 PLEASE VOTE FOR ME !!! Nitin Jinfal */
// By: my nameis Nitin Jindal (from Panchkula,Haryana)
//
//This code is copyrighted and has// limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=7588&lngWId=3//for details.//**************************************

/*Now you can reboot pc from ur program
 PLEASE VOTE FOR ME !!! Nitin Jinfal */
#include <stdio.h>
#include <dos.h>
#include <conio.h>
main()
{
union REGS i,o;
printf("\nPress any key to REBOOT !!!!");
getch();
int86(0x19,&i,&o);
return 0;
}


Other 5 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

9/1/2004 8:22:55 AM

It's nice.
(If this comment was disrespectful, please report it.)

 
10/5/2004 1:49:54 AMHarshal Joshi

it's nice but can u explain me how it do ? what int86(0x19,&i,&o); this function do ?
(If this comment was disrespectful, please report it.)

 
11/14/2004 4:41:44 AMPatrick Charm

What is int86(0x19,&i,&o);?
Can you explain me?
Thanks
(If this comment was disrespectful, please report it.)

 
2/21/2005 5:36:41 AM

it's nice but can u explain me how it
do ? what int86(0x19,&i,&o); this
function do ?
(If this comment was disrespectful, please report it.)

 
3/25/2005 12:39:16 AM

Nitin Great Going Buddy...Still if the you could have explained a little that would have made the other user vote you as the best

(If this comment was disrespectful, please report it.)

 
9/15/2005 3:49:37 AMvinoth

can you explain int86(0x19,&i,&o); please?.
(If this comment was disrespectful, please report it.)

 
2/5/2006 6:18:11 AMsatheesh

nice

(If this comment was disrespectful, please report it.)

 
3/9/2006 3:34:13 AMdiRTy_DouG

int86(0x19,&i,&o);

(If this comment was disrespectful, please report it.)

 
3/9/2006 3:35:18 AMdiRTy_DouG

int86(0x19,&i,&o);

Kindly pls. explain this line!?

thanx!
(If this comment was disrespectful, please report it.)

 
5/28/2006 6:56:07 AMTeodor Rusev

int86(0x19,&i,&o); - Is this a dos function from the dos.h header.

My vote won't be good, cause there are no comments in the program!!!

Nitin. U must comment out our programs especilly when you present them !

(If this comment was disrespectful, please report it.)

 
3/10/2007 4:51:44 AMGeorge

nice code
(If this comment was disrespectful, please report it.)

 
3/29/2007 9:00:50 AMAmul

does not work, i m using windows xp sp2.. why not??? plz reply on my email i.d my i.d amulbhatia@gmail.com
(If this comment was disrespectful, please report it.)

 
6/8/2007 2:56:58 AMDarren

This is a vanilla DOS program. Will not work under Windows.
The int86 line calls an DOS interrupt. Int 0x19 is the reboot vector.

(If this comment was disrespectful, please report it.)

 
12/24/2007 6:00:22 AMaldo

i'm glad to all source here, becouse of all i can learn much about C programming, thank a lot...
(If this comment was disrespectful, please report it.)

 
2/25/2008 7:38:34 PMSitrarasu

With SImple and Crisp Code You have done a superb program. You Have an Excellent Brain Nitin. My Best Wishes to your future programs. well done
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.