mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
726 B
29 lines
726 B
#include <windows.h>
|
|
#include <process.h>
|
|
#include <stdio.h>
|
|
|
|
void main (void)
|
|
{
|
|
SYSTEMTIME LocalTime;
|
|
|
|
system("cls" );
|
|
printf(".");
|
|
|
|
while(1)
|
|
{
|
|
GetLocalTime( &LocalTime );
|
|
|
|
// no Saturday or Sunday builds
|
|
if( LocalTime.wDayOfWeek > 0 && LocalTime.wDayOfWeek < 6 )
|
|
{
|
|
// Kick off build within the first 6 minutes after midnight
|
|
if( LocalTime.wHour == 0 && LocalTime.wMinute <= 5 )
|
|
{
|
|
system("buildalpha.cmd" );
|
|
system("cls" );
|
|
}
|
|
}
|
|
Sleep( 5*60*1000 ); // Sleep for 5 minutes
|
|
printf("."); // just some visual feedback to tell us we're doing something
|
|
}
|
|
}
|