Thread: Exiting windows through a C program.

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    12

    Exiting windows through a C program.

    I would like some help with, as the thread name implies, with exiting windows through a C program. I am quite new to programming, so please try to explain what to do . I guess that C doesnt have a function that exits windows, but you'd have to call some other function?

  2. #2
    life is a nightmare
    Join Date
    Apr 2007
    Posts
    127
    #include<stdlib.h> -->system("command");
    replace command with the command that makes windows shutdown

    cheers

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    12
    Thanks, i got it to work!

  4. #4

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  4. Replies: 6
    Last Post: 01-01-2007, 07:36 AM
  5. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM