Source code of Windows XP (NT5)
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.

28 lines
726 B

  1. #include <windows.h>
  2. #include <process.h>
  3. #include <stdio.h>
  4. void main (void)
  5. {
  6. SYSTEMTIME LocalTime;
  7. system("cls" );
  8. printf(".");
  9. while(1)
  10. {
  11. GetLocalTime( &LocalTime );
  12. // no Saturday or Sunday builds
  13. if( LocalTime.wDayOfWeek > 0 && LocalTime.wDayOfWeek < 6 )
  14. {
  15. // Kick off build within the first 6 minutes after midnight
  16. if( LocalTime.wHour == 0 && LocalTime.wMinute <= 5 )
  17. {
  18. system("buildalpha.cmd" );
  19. system("cls" );
  20. }
  21. }
  22. Sleep( 5*60*1000 ); // Sleep for 5 minutes
  23. printf("."); // just some visual feedback to tell us we're doing something
  24. }
  25. }