Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Pull current time from Server clock

Posted on 2003-11-17
4
Medium Priority
?
205 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:Jeremy Daley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
Dang123 earned 100 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:Jeremy Daley
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

660 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