Bat file to sync time, then open Time and Date to Internet Time tab

Page 1 of 2 12 LastLast

  1. Posts : 843
    11 Pro 21H2 (22000.832)
       #1

    Bat file to sync time, then open Time and Date to Internet Time tab


    A few years back, I had a bat file (that may have been written by Shawn B) that did three things: it launched the time syncing process, then when the process had succeeded, it triggered the playing of a sound, and finally, it opened the Time and Date dialog directly to the Internet Time page, where I could see that the syncing had succeeded at that particular time. Does anyone know enough about that bat file (or equivalent) to tell me how to re-create it?
    (Win 10, version 1909)
      My Computers


  2. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2
      My Computer


  3. Posts : 843
    11 Pro 21H2 (22000.832)
    Thread Starter
       #3

    I had studied (some time ago) those for the clues I was seeking. I guess my question needs to be re-worded this way: I know how to sync my clock by using a bat file [Thanks, Brink], and I know how to play a sound when the bat file has finished the first line [Thanks, Brink], but I do not know and have no idea how to find the long code in curly braces {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx} that references the Internet Time tab of the Date and Time dialog, so that after the sound plays, that page (tab) will be displayed, with the confirmation about mid-page. That's what the old bat did.
      My Computers

  4.   My Computer


  5. Posts : 6,839
    22H2 64 Bit Pro
       #5

    I just use this:

    Horst Schaeffer's Software Pages

    TimeSync 2.35


      My Computer


  6. Posts : 456
    Windows 10
       #6

    Would that be good enough for you if the batch would show something like this in the command prompt:

    Local time: 21:36
    Remote Time: 21:36
      My Computer


  7. Posts : 843
    11 Pro 21H2 (22000.832)
    Thread Starter
       #7

    ricardobohner said:
    Would that be good enough for you if the batch would show something like this in the command prompt:

    Local time: 21:36
    Remote Time: 21:36
    Good idea, but I was hoping for a way to open the Date and Time dialog to the Internet Time tab, where I should see a message to the effect that "The clock was synced with [server] at xx:xx AM/PM. I think I can get the time synced, the sound played, and the Date and Time dialog opened to the main page of that dialog, BUT, ... I guess I was shooting for the whole enchilada.

    Thank you for taking the time to post.

    Wisewiz
      My Computers


  8. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    Don't spend too much effort on this. The text "The clock was synced with [server] at xx:xx AM/PM" actually means "I tried to sync the clock with [server] at xx:xx AM/PM but there's no telling if this was successful or not".

    Denis
      My Computer


  9. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #9

    How about this from a Command Prompt: Rundll32.exe shell32.dll,Control_RunDLL timedate.cpl
      My Computers


  10. Posts : 843
    11 Pro 21H2 (22000.832)
    Thread Starter
       #10

    Gonna try that, but as noted above, this is prolly not worth too much time. I just think it's an interesting challenge. Thank you for taking the time to post.
      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 20:40.
Find Us




Windows 10 Forums