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

Page 1 of 2 12 LastLast
  1. Wisewiz's Avatar
    Posts : 438
    Windows 10 Pro 21H1
       #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. Try3's Avatar
    Posts : 8,638
    Windows 10 Home x64 Version 21H1 Build 19043.1110
       #2
      My Computer

  3. Wisewiz's Avatar
    Posts : 438
    Windows 10 Pro 21H1
    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. Callender's Avatar
    Posts : 4,404
    21H1 64 Bit Home
       #5

    I just use this:

    Horst Schaeffer's Software Pages

    TimeSync 2.35


      My Computer

  6. ricardobohner's Avatar
    Posts : 359
    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. Wisewiz's Avatar
    Posts : 438
    Windows 10 Pro 21H1
    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. Try3's Avatar
    Posts : 8,638
    Windows 10 Home x64 Version 21H1 Build 19043.1110
       #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. Ztruker's Avatar
    Posts : 13,601
    Windows 10 Pro X64 21H1 19043.1110
       #9

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

  10. Wisewiz's Avatar
    Posts : 438
    Windows 10 Pro 21H1
    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


 
Page 1 of 2 12 LastLast

  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 00:42.
Find Us




Windows 10 Forums