Solved

Pull current time from Server clock

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
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 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…

743 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

12 Experts available now in Live!

Get 1:1 Help Now