Re: Syncing Time with Another Computer?



You're welcome.

FWIW - Here's a batch file I put in startup on the workstations at a
client's site where there is no internet access.

@Echo Off
Echo .
Echo .
Echo Synchronizing Clock with Server
Echo .
net time \\brownserv /set /y
exit

--

"RJ" <jackbobNOSPAM@xxxxxxxxxxx> wrote in message
news:O4qXNpwVFHA.3320@xxxxxxxxxxxxxxxxxxxxxxx
> Thanks.
>
>
> "GTS" <x> wrote in message news:OHQjYmwVFHA.3176@xxxxxxxxxxxxxxxxxxxxxxx
>> net time \\SERVERNAME /set /Yes
>> /Yes is optional - prevents a confirmation prompt - useful if you want to
>> sync by running a batch file.
>> "SERVERNAME" can be any network peer.
>> --
>>
>> "RJ" <jackbobNOSPAM@xxxxxxxxxxx> wrote in message
>> news:%234WGXGwVFHA.628@xxxxxxxxxxxxxxxxxxxxxxx
>> > If I open a command prompt and want to synchronize
>> > the time on my WinXP PC with the time on another PC (any other
>> > computer)
>> > can this be done?
>> >
>> > I know there is the w32tm command, and w32tm /resync, but
>> > what if you are in a workgroup (not a domain)? Can you
>> > indicate what computer you want to synchronize your time with,
>> > in the command?
>> >
>> >
>>
>>
>
>


.



Relevant Pages

  • Re: Files deleted but free space doesnt increase
    ... The strange thing is that when I give you a self-logging batch file to ... echo %date% %time%> c:\test.txt ... command prompt to do that, ... deleting the files? ...
    (microsoft.public.windows.file_system)
  • Re: DOS Environment not working
    ... It just shows the variables set by windows on startup, ... The batch file does not fail because I ... installed a errorlevel statement to echo a message.... ... I run the batchfile at the command prompt, but when I check the variables: ...
    (microsoft.public.windowsxp.general)
  • Re: Copy multiple files into a single file - xcopy?
    ... I tried running it twice, once by double-clicking on the Batch file icon, and once from Command Prompt. ... batch file was in the parent folder whose subfolders contain the text files I want copied into a single file. ... Echo Snapshot taken on %date% at %time:~0,5%> c:\Collect.txt ...
    (microsoft.public.windowsxp.general)
  • Re: missing Folder, viewable in command prompt window
    ... > yet when I type dir it does (cut & paste from command prompt ... with the same hidden type features.. ... of the batch file: ... echo dir 1>>c:\test.log ...
    (microsoft.public.windowsxp.general)
  • Re: Persisting env vars in cmd windows
    ... The help text for the command you question goes like this: ... format by typing this: echo %date% ... If you don't then the batch file will fail. ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)