home *** CD-ROM | disk | FTP | other *** search
- Toad Hall's NETTIME v1.1 27 August 1991
-
- Usage: NETTIME d:
- where "d:" is a network drive on a remote file server.
-
- NETTIME then sets your local system to the server's system time.
-
- Background:
-
- A local BBS SYSOP needed to set his local system time to that of
- a remote network server (to insure they were both "reading off
- the same clock", so to speak).
-
- It turns out that his network software does NOT provide neat DOS
- function calls to query the network (or computers on the
- network) for their system time.
-
- So ... a workaround was in order.
-
- It turns out that (as with most networks) that the local system
- is able to "see" network files (via SHARE and NETBIOS) on a
- separate (logical) drive. For example, that server might
- provide a "F:" drive to our PC (even though no such drive is
- really partitioned on our local hard disk).
-
- With a little testing, we determined that a file created on that
- remote drive would be given the server's system date/time.
-
- That meant we could (1) create a temporary file on the file
- server (drive F:), read that file's date/time, and use THAT
- date/time (the file server's, actually) to reset our own local
- system date/time.
-
- Then, to be neat, we delete that remote system's temporary file.
-
- If something goes wrong between the creation and the deletion,
- you might end up with wee little bogus files on the file
- server's home directory. They'll be easy to spot: they all
- have numeric names (e.g., 10012345), no file type, and 0 file
- size. Delete them at will.
-
-
- Copyright and Licensing Restrictions:
-
- Copyright (c) 1991 David P Kirschbaum All Rights Reserved
-
- Any potentially commercial enterprises should contact the author
- for nonexclusive licensing.
-
- And of course, I disclaim any responsibility for anything (good
- or bad) this program does or fails to do (to include the breaking
- up of the USSR).
-
- Other than that, you can use this utility for anything you wish ..
- so long as you don't sell it, steal it, or remove my credits and
- copyright notice.
-
- David Kirschbaum
- Toad Hall
- kirsch@sesi.com
-
- 7573 Jennings Lane
- Fayetteville NC 28303
- (919) 868-3471
-
- v1.1 26 Aug 91: Misunderstood how to fiddle a file's date
- to get a DOS date (adding only 80). Turns out you must
- add 1980! Did 'n' did.