查看: 1025|回复: 4
|
怎样拿 remote computer 的时间
[复制链接]
|
|
小弟的final year project是做POS,然后是可以跑multi-user的,现在有点点小问题希望各位大哥大姐能帮帮我。
比如说我有几架PC然后我要把它们的时间变一样,在我的coding里我是call command.com & 用 net time \\RemotePCName /set /yes 来跑,可我supervisor却不接受,说什么现在没人在window-base的system跑comamnd prompt的,没standard又难看,并要我改用.net里的command,可我却无法在Help里找到这command, 不知有谁能告诉我?谢谢。 |
|
|
|
|
|
|
|
发表于 13-1-2007 12:05 PM
|
显示全部楼层
1. 可以用 windows 裡面的 internet time
2. net time 可以放在 logon script / policy, logon 候就自動 update 時間
3. 用 databse server time 為標準, software 執行就 update 時間
4. net time \\RemotePCName /set /yes 在背後執行, 也有一些 update time 的 windows client 可以下載
[ 本帖最后由 flashang 于 13-1-2007 12:07 PM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 13-1-2007 12:35 PM
|
显示全部楼层
原帖由 flashang 于 13-1-2007 12:05 PM 发表
1. 可以用 windows 裡面的 internet time
2. net time 可以放在 logon script / policy, logon 候就自動 update 時間
3. 用 databse server time 為標準, software 執行就 update 時間
4. net time \\RemotePCName /set /yes 在背後執行, 也有一些 update time 的 windows client 可以下載
不好意思,之前没说清楚,我的system有set timer在client porgram所以没几秒就会checking workstations的时间,如果和database server的不一样那么就auto update workstations的时间(用来防止user改时间), 现在是用calling command promt来跑虽然它会自己关可一直跑出来所以被supervisor reject。。。
我supervisor的意思是要我把这'process' build in 在coding里 (也就是说没另外call其它'program'),so 我因该要怎样做? (不知有没winapi call?) |
|
|
|
|
|
|
|

楼主 |
发表于 17-1-2007 10:04 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 17-1-2007 04:32 PM
|
显示全部楼层
你是怎么calling command prompt ?
System.Diagnostics.Process?
假如是用
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; |
|
|
|
|
|
|
| |
本周最热论坛帖子
|