how to set date to current date using dos batch file command

前端 未结 4 1936
忘了有多久
忘了有多久 2021-02-11 00:36

how to set date to current date using dos batch file command.

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-11 00:54

    When you type "date" on the dos command it will show you the date specified in your bios, and ask you to set the current date (you can set this if the date in your bios is not the current). The system has no ability to know if it's date is correct.

    If you have a server with correct date, you can use "net time" so the the client can synchronize with the server.

    NET TIME  /SET
    

    or

    NET TIME \\SERVERNAME /SET /YES
    

提交回复
热议问题