Computing.Net > Forums > Windows 2000 > batch file: pipe to net time

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch file: pipe to net time

Reply to Message Icon

Name: rustyconc
Date: July 15, 2005 at 07:25:08 Pacific
OS: win2k, sp4
CPU/Ram: p4,1Gig
Comment:

Hi,

I want to add a time sync line to my batch file, using a local named computer [\\Asf-2]. I thought this should work:

>echo y|net time \\Asf-2 /set

But I get this output:
Current time at \\Asf-2 is 7/15/2005 11:20 AM

The current local clock is 7/15/2005 11:20 AM
Do you want to set the local computer's time to match the
time at \\Asf-2? (Y/N) [Y]:
No valid response was provided.

So the pipe command isn't working in this situation... it does in this situation though:

>echo.|time
The current time is: 11:22:28.34
Enter the new time:
>

Which is exactly the behavior I want for the first situation.

Any ideas/workararounds/other ways to sync time to a local machine (not a server or internet time).

Tx R



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: July 15, 2005 at 08:06:39 Pacific
Reply:

net time \\Asf-2 /set /y

M2


If at first you don't succeed, you're about average.


0

Response Number 2
Name: rustyconc
Date: July 18, 2005 at 05:35:18 Pacific
Reply:

Tx - works great. Where would I find documentation for that -- it doesn't show up in
net time /?

R


0

Response Number 3
Name: Mechanix2Go
Date: July 18, 2005 at 06:19:37 Pacific
Reply:

Hi Rusty,

Yeah, it sure doesn't show in help.

Another case of winders "help" LOL.

I just kept typing in different stuff until I got it to work.

As ever, old age and treachery prevail over youth and enthusiasm.

M2


If at first you don't succeed, you're about average.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: batch file: pipe to net time

Batch file to delete all the folder www.computing.net/answers/windows-2000/batch-file-to-delete-all-the-folder/37285.html

2000 Server Batch file write to Tex www.computing.net/answers/windows-2000/2000-server-batch-file-write-to-tex/54972.html

Batch file: How to get a substring? www.computing.net/answers/windows-2000/batch-file-how-to-get-a-substring/45903.html