Just nu i M3-nätverket
Jump to content

Automatisk avstängare


FredrikW

Recommended Posts

Petter Holmström

{$APPTYPE CONSOL}

program WinShutDown;

 

uses Windows, SysUtils, Messages;

 

const

EndTime = '24:00:00'; { I rätt format }

 

begin

if StrToTime(EndTime) > Time then

ExitWindowsEx(EWX_SHUTDOWN, 0);

end.

 

OBS! Har inte testat programmet. Mycket möjligt att det innehåller fel.

-Petter-

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...