Home  >  Article  >  Database  >  python同步windows系统时间

python同步windows系统时间

WBOY
WBOYOriginal
2016-06-07 16:00:571664browse

import os com1 = 'net use \\\\192.168.0.90\\ipc$ PPss01!123/user:administrator' os.system(com1) com2='net time \\\\192.168.0.90 /set /yes ' os.system(com2) com3='pause' os.system(com3)

import os
com1 = 'net use \\\\192.168.0.90\\ipc$ PPss01!123/user:administrator'
os.system(com1)
com2='net time \\\\192.168.0.90 /set /yes '
os.system(com2)
com3='pause'
os.system(com3)


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn