Showing posts with label Programing. Show all posts
Showing posts with label Programing. Show all posts
Lets see how to do more than a regular shutdown.You can add any
combination of several switches to do extra things with shutdown.Shut Down--
Open Notepad
Paste Bellow Code In It
shutdown -s -t 03 -c "Pc Shutting Down Bye Rashin See You Soon"
Save the file as shutdown.bat
Just run the program and see the magic
Parameters
-s -- Shutdown Command
-t -- Time In Seconds
-c -- Displays A Message Before Shut Down'
-f -- Forces Any Running Program To Stop
-r -- Restarts The Computer
Restart--
shutdown -r -t 03 -c "I Am Restarting See You Rashin After That"
Do the same above steps but save the file as Restart.bat
Basic Structure Of A C Program
| Documentation Section | ||||||
| Link Section | ||||||
| Defenition Section | ||||||
| Global Declaration Section | ||||||
| Main() Function Section {
} | ||||||
| Sub Program Section
|
Documentation Structure:-Name Of Auther And Other Details As Comments
Link Section:-It Gives Instuction To Compiler To Link Function From System library
Defenition Section:-It Defines All Symbolic Constants eg : #include<stdio.h>
Global Declaration Section:-Use To Declare Variables .Which Is Used In More Than 1 Function
Main() Function:-Every C Program Must Have A Main() Function Consisting Of Two Parts
Declaration Part:- Declares All Variable Used In Exicution Part
Execution Part:- It Consist Of Statement to Be Executed(Atleast 1)
Note:= These Two Parts Must Be Enclosed In Opening And Closing Brackets “{“ “}”
Sub Program Section:- It Consist Of User Defined Functions
To Be Continued…..
