Re: Set the time??

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: dude (dude_at_dude.com)
Date: 04/28/04


Date: Thu, 29 Apr 2004 00:45:27 +0100

Cheers for that. Unfortunatly your reply raises another couple of
questions!

What does %comspec% do/return?
What does the 9, False do?

Cheers,
Danny

On Wed, 28 Apr 2004 15:17:13 -0700, "Charles Blair"
<charles_blair@hotmail.com> wrote:

> Set objShell = Wscript.CreateObject("Wscript.Shell")
> objShell.Run ("%comspec% /c NET TIME \\SERVER /SET /Y"), 0, False
>
>Charles
>
>"dude" <dude@dude.com> wrote in message
>news:7s3u80laqu8hi1dl3vdb52595ffvb8mvdf@4ax.com...
>> Is it possible to synchronise the time of the local machine via VBS -
>> like the command "NET TIME \\SERVER /SET /Y"
>>
>> Cheers.
>> Danny
>