Click here to Skip to main content
15,891,762 members
Home / Discussions / C#
   

C#

 
AnswerRe: Shutdown Computer Through C Program. Pin
Jun Du14-Jun-06 7:04
Jun Du14-Jun-06 7:04 
GeneralRe: Shutdown Computer Through C Program. Pin
Droze14-Jun-06 7:24
Droze14-Jun-06 7:24 
GeneralRe: Shutdown Computer Through C Program. Pin
Jun Du14-Jun-06 7:28
Jun Du14-Jun-06 7:28 
GeneralRe: Shutdown Computer Through C Program. Pin
Droze14-Jun-06 7:46
Droze14-Jun-06 7:46 
GeneralRe: Shutdown Computer Through C Program. Pin
Droze14-Jun-06 8:06
Droze14-Jun-06 8:06 
GeneralRe: Shutdown Computer Through C Program. Pin
Dan Neely14-Jun-06 9:21
Dan Neely14-Jun-06 9:21 
AnswerRe: Shutdown Computer Through C Program. Pin
Droze14-Jun-06 9:32
Droze14-Jun-06 9:32 
AnswerRe: Shutdown Computer Through C Program. Pin
Koushik Biswas15-Jun-06 10:36
Koushik Biswas15-Jun-06 10:36 
Though you are in the wrong forum, I will try. First of all, why this obsession with C? Why not a BAT file that has "/shutdown -s" typed in it, and use Windows Scheduler to run it whenevr you want?

OK, so you are the "I will write my own program" kind of addict. Why not use the WinExec() Win32 API to execute the same BAT file? Create the BAT file and keep it somewhere on the hard disk. Now in the C program (which can take parameters like timer duration etc - that is your design, you can even pass the full path & name of theBAT file if you want your program to be generic) that will simply execute the BAT file at the specified time.

Koushik Biswas
QuestionReporting Service install problem... Pin
ersinsivaz14-Jun-06 6:01
ersinsivaz14-Jun-06 6:01 
AnswerRe: Reporting Service install problem... Pin
Suamal14-Jun-06 19:15
Suamal14-Jun-06 19:15 
QuestionRunning parallely single Application with two differnt versions Pin
kumar.bs14-Jun-06 5:59
kumar.bs14-Jun-06 5:59 
AnswerRe: Running parallely single Application with two differnt versions Pin
Mr. VB.NET14-Jun-06 6:10
Mr. VB.NET14-Jun-06 6:10 
GeneralRe: Running parallely single Application with two differnt versions Pin
kumar.bs14-Jun-06 6:17
kumar.bs14-Jun-06 6:17 
GeneralRe: Running parallely single Application with two differnt versions Pin
Mr. VB.NET14-Jun-06 6:21
Mr. VB.NET14-Jun-06 6:21 
GeneralRe: Running parallely single Application with two differnt versions Pin
Tim Paaschen14-Jun-06 20:44
Tim Paaschen14-Jun-06 20:44 
AnswerRe: Running parallely single Application with two differnt versions Pin
leppie14-Jun-06 6:57
leppie14-Jun-06 6:57 
QuestionPaint Method C# Pin
reshsilk14-Jun-06 5:47
reshsilk14-Jun-06 5:47 
AnswerRe: Paint Method C# Pin
Alexander Wiseman14-Jun-06 6:43
Alexander Wiseman14-Jun-06 6:43 
GeneralRe: Paint Method C# Pin
reshsilk15-Jun-06 4:48
reshsilk15-Jun-06 4:48 
QuestionC# Design Patterns (Abstraction etc.) Pin
Mr. VB.NET14-Jun-06 5:38
Mr. VB.NET14-Jun-06 5:38 
AnswerRe: C# Design Patterns (Abstraction etc.) Pin
Kevin McFarlane14-Jun-06 5:51
Kevin McFarlane14-Jun-06 5:51 
GeneralRe: C# Design Patterns (Abstraction etc.) Pin
Mr. VB.NET14-Jun-06 6:08
Mr. VB.NET14-Jun-06 6:08 
GeneralRe: C# Design Patterns (Abstraction etc.) [modified] Pin
Josh Smith14-Jun-06 7:15
Josh Smith14-Jun-06 7:15 
GeneralRe: C# Design Patterns (Abstraction etc.) Pin
Mr. VB.NET14-Jun-06 10:56
Mr. VB.NET14-Jun-06 10:56 
GeneralRe: C# Design Patterns (Abstraction etc.) Pin
Kevin McFarlane14-Jun-06 23:19
Kevin McFarlane14-Jun-06 23:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.