
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?