Menu

#41 Feature request: Close program after successful sync

open
nobody
None
5
2024-02-26
2023-10-19
No

Since I only need the program to sync at boot up, I would like the settings to have an option
to terminate the program after sucessful time sync. I don't need the ap in memory anymore after
the initial time sync after boot up. (and only then because of sometimes previously booting linux)

Discussion

  • Mark Griffiths

    Mark Griffiths - 2023-10-20

    You can effectively do this already by running the program with the /synconce command line parameter. Make sure that it is run with administrator privileges.

     
    • grade1000

      grade1000 - 2023-11-24

      How to do this on Windows? CLI command

       
  • Javier

    Javier - 2024-02-19

    Hi, I have the same need as Daniel: sync at boot and exit. I used the /synconly option but nettime keeps in tray. I have to wait 5 seconds and then kill process. I used the following command line code:

    start "" NetTime.exe /synconce
    timeout /t 5 /nobreak
    taskkill /f /im NetTime.exe
    

    I have to use start command because NetTime locks CLI if launched directly.
    I have to use force option (/f) in taskkill command because NetTime ignores termination signal sent by taskkill.

     
  • Javier

    Javier - 2024-02-26

    The correct command line option for Daniel and me is /updateonce. There is no need of my previous batch file. I programmed the task manager to launch nettime.exe /updateonce at system bootup

     

Log in to post a comment.

MongoDB Logo MongoDB