Raik: der elegante Weg: Atomzeit per Batch

Beitrag lesen

Hallo!

» ein "programm" nur zum syncronisieren der zeit?
ja, eigentlich schon...

dann aber nur per taskplaner (der sowieso schon ständig läuft) aufrufen und danach gleich wieder beenden. wozu soll sowas die ganze zeit im hintergrund mit ner eigenen timerfunktion systemleistung verbraten...

Die erste Zeile mit dem "net time" kann *ich* ja noch mit etwas Phantasie interpretieren - mein Windows 98 allerdings nicht.

C:>net time /?
Die Syntax dieses Befehls lautet:

NET TIME [\Computername | /DOMAIN[:Name] | /RTSDOMAIN[:Name]] [/SET]
         [\Computername] /QUERYSNTP
         [\Computername] /SETSNTP[:NTP-Serverliste]

Die zweite Anweisung stellt mich dann endgültig vor ein Rätsel.

C:>w32tm /?
w32tm [ -tz | -s [computer] | -adj | -adjoff | -source | -once ] [-test] [-v] [-p <port>] [-period <freq>]

Primary options:
    -tz       print the local time zone info and exit.
    -s [<computer>] force the given computer (or the local computer if none is given) to resynchronize, then exit.
    -adj      set the computer's system clock frequency to the last frequency determined during synchronization, then exit.
    -adjoff   set the computer's system clock frequency the system default, then exit
    -source   choose a synchronization source, then exit. Note that a source is chosen before each synchronization, so this is useful only in showing that a source could be found.
              Remember to use -v to see the output.
    -once     do only one synchronization, then exit.
    Otherwise, run continuously as a client, synchronizing the local clock until ctrl-c is pressed.

The program will also run as a server any time the service
    would (when it is on a DC, or when the registry flag is set).

The following options can be used in conjunction with the above:
    -test     prevent the time on the local system from actually being modified.
    -v        print out a verbose description of what the program is doing. This is usually needed since otherwise the
              program produces no output. The exceptions are -s and -tz.
    -p <port> set the server port.
    -period <freq> set the sync period just as in the registry. That is:
              0 == once a day
              65535 == once every 2 days
              65534 == once every 3 days
              65533 == once every week (7 days)
              65532 == once every 45 min until we get 3 good syncs, then once every 8 hrs (3/day)
              65531 == once every 45 min until we get 1 good sync, then once every day
              Otherwise, <freq> times per day.

Du hast schon gelesen, dass es eine meiner Bedingungen war, es möge unter allen Windows-Versionen ab Win95 funktionieren?

oops, übersehen.

Wenn das ein Wink mit dem Zaunpfahl sein soll, auf eine modernere Windows-Version umzusteigen - okay, ich selbst lasse mich eventuell noch zu Win2k überreden. Meine Freunde und Bekannten, deren PCs ich mehr oder weniger mitbetreue, allerdings nicht. So gesehen wäre dein indirekter Hinweis zwecklos.

seit die kinder von meiner bekannten es unter win98 immer wieder geschafft haben, ohne sinn und verstand deren von mir gerade wieder frisch aufgesetzten rechner mit dialern und anderer zweifelhafter software zu crashen, habe ich auch in meinem bekanntenkreis win2k durchgesetzt.

freundl. Grüsse aus Berlin, Raik