Solved

Pull current time from Server clock

Posted on 2003-11-17
4
193 Views
Last Modified: 2010-05-01
I have a timecard program that gets the time from a user's workstation but of course this could cause problems if the person decides to change his clock backwards or forwards.

how can i get the time from server "\\server" ?
i tried some other guys code that used the NetRemoteTOD command but i think the code was wrong so it was pulling the time from my workstation instead of the server.

please help. thank you,
jeremy
0
Comment
Question by:daleyjem
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
Dang123 earned 50 total points
ID: 9765522
0
 
LVL 9

Expert Comment

by:Dang123
ID: 10164468

    Did the link I posted help?
0
 
LVL 4

Author Comment

by:daleyjem
ID: 10166918
i found a solution that actually works better than that, but i lost my source code. i have the .exe compiled already and running right now, but i wish i could show you what i did. it was all mostly copy and paste for me, and i can't even remember where i got the sample code that i copied, but i'm gonna go ahead and give you the points 'cause you at least tried and i hate the hastle.

the link i went to seemed a little helpful, but when i actually got the code downloaded, it was missing an .ocx file i think and oh well...here ya go.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now