Getting Server date and time 
Author Message
 Getting Server date and time

Hello there

I have multiuser application that works on my company.

The server system is Windows NT and there are many workstations with the
follwing systems:
Windows 98, Windows 98se , Windows NT Workstation, Windows Me, Windows 2000
proffesional and Windows XP

I need code that for each of these systems can read the date and time on the
Windows NT server

Does someone know where can i get this code?



Sat, 18 Jun 2005 18:21:40 GMT  
 Getting Server date and time
I have seen some API calls that will work on the NT computers (NT4, Win2k), but not on the
Win9x line. What I have done that appears to work on all of them is:

shell "command.com /c net time \\server /set /yes", vbhide

This calls command.com. The /c switch tells it to execute the following command then exit
(which will close command.com again). The \\server is the standard UNC notation for the
name of the computer you are trying to get the time from.

--
Wayne Morgan
Microsoft Access MVP


Quote:
> Hello there

> I have multiuser application that works on my company.

> The server system is Windows NT and there are many workstations with the
> follwing systems:
> Windows 98, Windows 98se , Windows NT Workstation, Windows Me, Windows 2000
> proffesional and Windows XP

> I need code that for each of these systems can read the date and time on the
> Windows NT server

> Does someone know where can i get this code?



Sat, 18 Jun 2005 18:59:03 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting Date and time from the server

2. Getting DATE/TIME from a Server

3. getting server's date and time

4. Compare date in form with date/time in form with date/time in database

5. Problem Using Time Part of a Date-Time field in SQL-Server

6. Matching system date/time with field date/time

7. combining a time and a date to one Date/Time value

8. start date/time, end date/time problem

9. How to subtract a date-time from a date-time

10. ADO with Access Date/Time field not storing the time, just the date

11. Converting %date% %time% to VB Time/Date

12. VBA: Getting a error setting a Date/Time = to another D/T field

 

 
Powered by phpBB® Forum Software