Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

snychronize time with server machine

Status
Not open for further replies.

dekcool

Programmer
Oct 2, 2002
231
PH
hi!

i just want to know is there a simple program that synchronize client machine to server machine

server: win2000
client:win98

thanks in advance!

____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
not sure about your exact question whether you want to set your client computer date time same as your server date time or you want to get server date time.
if you just want to get server date time, just use date time function in vb(provided your code reside in server) and it will be get the server time.
* Using javascript to get time will only get client computer date time. I made this mistake before.
 
hi! thanks

i want to synchronize my client to server date and time everytime i start client


____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
On the Win98 machine, create a batch file, synchtime.bat containing the command
net time \\xp16g /set /yes
Then call it in the Win98 Start menu

 
hi thanks,
can i put it to autoexec.bat

____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
im getting an error

net time \\printerserver /set /yes

error 5 : you do not access to the file .....

any idea what wrong with my settup

my server is win2000 thanks again

____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top