Solved

Pull current time from Server clock

Posted on 2003-11-17
4
201 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 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: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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

623 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