Question as to Scheduled Events and DST Time Changes


  1. Posts : 15
    Windows 10 Pro
       #1

    Question as to Scheduled Events and DST Time Changes


    Does anyone know if Windows is smart enough to recognize that a scheduled event has already run when the event is set for between 1:00 am and 2:00 am on the fall date that the DST goes back to real time? I'm redoing some maintenance events and I need to know if some of them may run twice on that date. If so, I may need to get ceative with some batch files.

    Thanks.
      My Computers


  2. Posts : 4,752
    Windows 11 Pro 64 Bit 22H2
       #2

    Are you posting this from the southern hemisphere or are you a time traveler?
    the change from DST to ST happened 5 months ago. Are you asking about the Spring return to DST? Or are you planning for the Future next November? Were your maintenance events set in place back in November last year? How did they fair?
    Windows is smart enough to run the event at the scheduled time with the time change.
      My Computer


  3. Posts : 15
    Windows 10 Pro
    Thread Starter
       #3

    I am planning ahead for the coming fall. I purchased two new computers for home and in setting up the new network, I am also setting up overnight backup routines which will run automatically. Coming the conclusion that Microsoft would never set something up that I would like, I decided to just write batch files to take care of the problem. If anyone is interested, this is what I did.

    This segment is at the beginning of the batch file:

    set mm=%date:~4,2%
    set dow=%date:~0,3%
    set dd=%date:~7,2%
    if %mm%==11 goto Day
    goto NoDST

    ay
    if %dow%==Sun goto date
    goto NoDST

    :date
    if %dd%==01 goto DSTCheck
    if %dd%==02 goto DSTCheck
    if %dd%==03 goto DSTCheck
    if %dd%==04 goto DSTCheck
    if %dd%==05 goto DSTCheck
    if %dd%==06 goto DSTCheck
    if %dd%==07 goto DSTCheck
    goto NoDST

    STCheck
    if not exist d:\backups\support\holders\DSTOff goto DSTOff
    goto end

    SToff
    copy d:\backups\support\DSTOff d:\backups\support\holders

    :NoDST

    The rest of the batch file begins here.

    At the termination of the backup process, another batch file will automatically run which deletes the DSTOff file and shuts down the machine. This process allows the backup to run the first time it executes on the first Sunday of November, but prevents its execution on subsequent attempts. By running another batch which deletes the marker file, everything is ready to go the next day. FWIW, the DSTOff file is just a zero byte file that is copied into the testing directory, so there is nothing there that is involved. Just basic batch language.


    spunk said:
    Are you posting this from the southern hemisphere or are you a time traveler?
    the change from DST to ST happened 5 months ago. Are you asking about the Spring return to DST? Or are you planning for the Future next November? Were your maintenance events set in place back in November last year? How did they fair?
    Windows is smart enough to run the event at the scheduled time with the time change.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:15.
Find Us




Windows 10 Forums