BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan Right Header

HOME BZU Mail Box Online Games Radio and TV Cricket All Albums
Go Back   BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan > Welcome to all the Students > Tutorial > Networking/Ethical Hacking

Networking/Ethical Hacking Are you a hacker? Then prove it here!


Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 06-05-2011, 10:49 PM
JuNaiDiQbaL's Avatar
Never Give Up

 
Join Date: Jan 2011
Location: SahiwaL
Age: 31
Posts: 26
Program / Discipline: BSIT
Class Roll Number: 10-26
JuNaiDiQbaL has a spectacular aura aboutJuNaiDiQbaL has a spectacular aura about
Default A C Program to shutdown the computer..

#include 'stdio.h'
#include 'conio.h'
void main()
{
system("shutdown -s");
getch();
}


Last edited by JuNaiDiQbaL; 07-09-2012 at 02:41 PM.
Reply With Quote
  #2  
Old 27-08-2011, 07:22 PM
Salman Mushtaq's Avatar

Feel The Difference



 
Join Date: Jul 2010
Location: Riyadh
Age: 33
Posts: 4,544
Contact Number: See my signature at the end of my posts
Program / Discipline: MIT
Class Roll Number: MITF12A006
Salman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond reputeSalman Mushtaq has a reputation beyond repute
Default Re: A C Program to shutdown the computer..

bhai g only preprocessor directive likhay hain yey tou bataya nahi k kon c header files include karwani hain ...
__________________

SALMAN MUSHTAQ

MOB:0333-7465571
Email: mani@bzupages.com
Note:
For Merit Lists click here !

Merit Lists of BZU
Merit List Distance Learning Education 2012
Reply With Quote
  #3  
Old 05-09-2012, 09:32 PM
SpyHeart's Avatar
Textilian

 
Join Date: Sep 2012
Location: Lahore
Age: 33
Posts: 25
Contact Number: +923214235001
Program / Discipline: Engineering
Class Roll Number: 10-12
SpyHeart will become famous soon enough
Default Re: A C Program to shutdown the computer..

Quote:
Originally Posted by Salman Mushtaq View Post
bhai g only preprocessor directive likhay hain yey tou bataya nahi k kon c header files include karwani hain ...
Agree.......................... where iz header file rout
__________________


پتا نہیں غصے کی وہ کون سی حالت ہوتی ہے جس میں انسان برسوں

کے ساتھ اور ساتھی کو لمحوں میں چھوڑنے کا فیصلہ کر لیتا ہے۔
پیار، محبت، اعتماد، دوستی کوئی چیز پاؤں کی زنجیر نہیں بن پاتی۔

(اقتباس: عمیرہ احمد کے ناول "عکس" سے)



Reply With Quote
  #4  
Old 07-09-2012, 02:39 PM
JuNaiDiQbaL's Avatar
Never Give Up

 
Join Date: Jan 2011
Location: SahiwaL
Age: 31
Posts: 26
Program / Discipline: BSIT
Class Roll Number: 10-26
JuNaiDiQbaL has a spectacular aura aboutJuNaiDiQbaL has a spectacular aura about
Default Re: A C Program to shutdown the computer..

Quote:
Originally Posted by Salman Mushtaq View Post
bhai g only preprocessor directive likhay hain yey tou bataya nahi k kon c header files include karwani hain ...
no header files needed for system command, but for getch() function there should be . sorry i forget to include it.
Reply With Quote
  #5  
Old 07-09-2012, 08:02 PM
BenishZahid's Avatar
Little Baby

 
Join Date: Aug 2012
Location: United States
Posts: 3
Program / Discipline: MCS
Class Roll Number: 13
BenishZahid is on a distinguished road
Default Re: A C Program to shutdown the computer..

Sir i want a program to access a folder using c program, i didn't found it any where sir .And some people are saying that we can access the folder using .net it s difficult using c. DO u have a solution for it ?
__________________
bise lahore | biselahore | www.biselahore.com
Reply With Quote
  #6  
Old 11-10-2012, 12:53 AM
JuNaiDiQbaL's Avatar
Never Give Up

 
Join Date: Jan 2011
Location: SahiwaL
Age: 31
Posts: 26
Program / Discipline: BSIT
Class Roll Number: 10-26
JuNaiDiQbaL has a spectacular aura aboutJuNaiDiQbaL has a spectacular aura about
Default Re: A C Program to shutdown the computer..

yes you can access a folder using C
here is the code
Code:
#include "stdlib.h"
int main()
{
system("explorer C:\\TC");
return 2;
}
this Code will open TC folder in C Drive.
Reply With Quote
Reply

Tags
computer, program, shutdown


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
NTS Customized BZU Test 2010 for Graduate Program (Business Administration,Computer Sciences and Commerce) .BZU. University News and Events 5 06-07-2010 11:16 PM
Unable to shutdown windows 7. How to solve this?? .BZU. PC and Windows Tutorial 1 13-05-2010 08:02 AM
Shutdown, Restart your PC Immediately usman_latif_ch PC and Windows Tutorial 4 18-08-2009 06:34 PM
Computer Department Starting MS Program Waqas Ahmed University News and Events 0 23-09-2008 09:31 AM

Best view in Firefox
Almuslimeen.info | BZU Multan | Dedicated server hosting
Note: All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us.

All times are GMT +5. The time now is 03:38 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.