SetTime2.vbs file not working anymore

  • Thread starter Thread starter Rawhide
  • Start date Start date
R

Rawhide

Hello,

As of a week or so ago, every time I run my SetTime2.vbs file, (from Bill
James, Microsoft MVP), -

( http://www.billsway.com/vbspage )
under:
Set Your Windows Clock Automatically
SetTime2.vbs

- which has always worked flawlesly, I get this error window:

in the title bar, it says
"Windows Script Host"
and at the top left, there's a red circle, with a white X in it,
and also in the body of the wiondow, it says,
Script: X:(File location)\ SetTime2.vbs
Line: 71
Char: 3
Error: Invalid procedure call oir argument: 'right'
Code: 800A0005
Source: Microsoft VBScript runtime error

( I don't think there is anything wrong with the file, something has
happened on my system to make it stop working), I even downloaded a fresh
copy of it, and ran it from my desktop, with the same result. )

Nothing has changed as far as me adding anything, to my system, in over a
month or so.

Does anyone know why it might not be working anymore?

I like this simple file, and want to get it back working.

Running Windows XP Professional, SP1, with all critical updates from WinUp.

thanks for any help
 
Probably it can't find the server or the server isn't returning the date. The error occurs when a variable containing the date in empty.
 
I did and it doesn't (but editing the code to make the variable empty does generate the same messaage - one is trying to take the right hand part of a date but the date is empty). Without being on your computer it's hard to know.

Run attached file and tell me what both extra dialog boxes say.
 
That file still had the error I introduced. Run this one. Only one extra dialog in this one (I know what server you are going to).
 
nothing more showing up since my post from 46 mins ago
i'll chek bak in a bit
thank you for tryin' to help Dave
 
Dialog boxes have a number (0, 1, ..., n) with an error number on the second line.

List the dialog number in the order they appear, and the error code if not 0. Some should appear 5 times.
 
Each appears once,
they say:
Message1
Message2
Message3
Message4
and Message5
all with 0's on the second line, for the error code.
 
"Try this one. It has the same dialogs as the last. This time I'm looking
for a new windows error dialog."

Same thing Dave, Message 1 thru 5, all with 0's on the second line.

"This is much easier if one can sit at the same computer with the problem."

I hear ya, hey, I just sent the original SetTime2.vbs file to a buddy,
that's operatin' an antenna at green bank, wv, and he said he got the same
error as me.

hey, you can stop what your doin' here for me, if it's gettin' to ya Dave. I
still apreciate what you done so far.

Enter this in a browser
http://tycho.usno.navy.mil/cgi-bin/timer.pl5/24/2004 5:43:00 PM

Hopefully it will tell you the time.

Yes, I had that too already.
I just want my file to work, you know where i'm at.
i'm an ol' coot, that likes things to not change :-)
 
This implies it is waiting 40 seconds for an answer (here in australia going under the ocean to the US at 40% of the speed of light it takes 1-3 seconds) and doesn't appear to get one.

Is it taking 40 seconds (or more) from starting it till that dialog pops up? You did get the time displayed in various US time zones when entering that URL into a browser?
 
"Is it taking 40 seconds (or more) from starting it till that dialog pops
up?"

Negative, when first running that last file, it takes about 3 to 4 seconds,
to get the message 4 with 0 error code, then each dialog after that comes
right up in less than a sec after cliking OK.

"You did get the time displayed in various US time zones when entering that
URL into a browser?"

Affirmative
 
oh well, can't say we didn't give it the ol' college try, eh mate !

thanks much dave, your allright

hey, iz there really a yellow brick road, leading to OZ ?!

:-)
 
Nope, and no tornados either. But it is a magical land, and assuming you are in Canada rather than Sth America, it's not freezing either.

I can't find anything wrong with the code. I rewrote parts of it (there's is some poor programming in it but it seems logically correct). I can generate errors, probably from the server, on the alternative time server. But you are using the main one and I can't trip that up.

There are different versions of XML library (what is uses to access the web). The docs imply but don't state that it's a stateful connection. But it works fine for me. Possibly you are using a different XML library. The filename is msxml3.dll and there were different versions for XP, XP SP1, and Windows 2003 Server (which also comes as MDAC2.8). MS often don't list security patches at http://support.microsoft.com/defaul...com/servicedesks/fileversion/dllinfo.asp&fp=1.

Try reading these two articles
http://support.microsoft.com/default.aspx?kbid=308480&FR=1
http://support.microsoft.com/default.aspx?kbid=269238&FR=1

Also just check that this is the correct file by checking the registry at
HKEY_CLASSES_ROOT\Microsoft.XMLHTTP\CLSID
and looking up the number listed at (I've put in mine)
HKEY_CLASSES_ROOT\CLSID\{ED8C108E-4349-11D2-91A4-00C04F7969E8}\InProcServer32
 
hey, thanks again mate, for what you did
i appreciate your time.....

i've got a sneakin' suspicion, that for some reason, the file just aint
workin' here on the US east coast, seein' that my buddy down in WV got the
same runtime error when runnin' it. And up until a week or so ago, the file
has always worked, for the whole time i've had it, which i think has been a
couple years or so....

i've got msxml3.dll in, :\WINDOWS\system32
and in :\WINDOWS\ServicePackFiles\i386
version: 8.30.9926.0
description:MSXML 3.0 SP 3

- and those registry entries match up exact too.

anyways, right now, i'm in west central NH,
so,
thanks again mate, from the utha side a tha world
:-)

Maybe somebody here on the US East coast, that's readin' this, will try the
file and post back their results.
the original file is located here:
It's from Bill James, Microsoft MVP,
http://www.billsway.com/vbspage
under:
Set Your Windows Clock Automatically
SetTime2.vbs
_______________________________


Nope, and no tornados either. But it is a magical land, and assuming you are
in Canada rather than Sth America, it's not freezing either.

I can't find anything wrong with the code. I rewrote parts of it (there's is
some poor programming in it but it seems logically correct). I can generate
errors, probably from the server, on the alternative time server. But you
are using the main one and I can't trip that up.

There are different versions of XML library (what is uses to access the
web). The docs imply but don't state that it's a stateful connection. But it
works fine for me. Possibly you are using a different XML library. The
filename is msxml3.dll and there were different versions for XP, XP SP1, and
Windows 2003 Server (which also comes as MDAC2.8). MS often don't list
security patches at
http://support.microsoft.com/defaul...com/servicedesks/fileversion/dllinfo.asp&fp=1.

Try reading these two articles
http://support.microsoft.com/default.aspx?kbid=308480&FR=1
http://support.microsoft.com/default.aspx?kbid=269238&FR=1

Also just check that this is the correct file by checking the registry at
HKEY_CLASSES_ROOT\Microsoft.XMLHTTP\CLSID
and looking up the number listed at (I've put in mine)
HKEY_CLASSES_ROOT\CLSID\{ED8C108E-4349-11D2-91A4-00C04F7969E8}\InProcServer3
2
 
Works OK here in the UK!!

--

Will Denny
MS-MVP Windows - Shell/User


| hey, thanks again mate, for what you did
| i appreciate your time.....
|
| i've got a sneakin' suspicion, that for some reason, the file just aint
| workin' here on the US east coast, seein' that my buddy down in WV got the
| same runtime error when runnin' it. And up until a week or so ago, the
file
| has always worked, for the whole time i've had it, which i think has been
a
| couple years or so....
|
| i've got msxml3.dll in, :\WINDOWS\system32
| and in :\WINDOWS\ServicePackFiles\i386
| version: 8.30.9926.0
| description:MSXML 3.0 SP 3
|
| - and those registry entries match up exact too.
|
| anyways, right now, i'm in west central NH,
| so,
| thanks again mate, from the utha side a tha world
| :-)
|
| Maybe somebody here on the US East coast, that's readin' this, will try
the
| file and post back their results.
| the original file is located here:
| It's from Bill James, Microsoft MVP,
| http://www.billsway.com/vbspage
| under:
| Set Your Windows Clock Automatically
| SetTime2.vbs
| _______________________________
|
|
| | Nope, and no tornados either. But it is a magical land, and assuming you
are
| in Canada rather than Sth America, it's not freezing either.
|
| I can't find anything wrong with the code. I rewrote parts of it (there's
is
| some poor programming in it but it seems logically correct). I can
generate
| errors, probably from the server, on the alternative time server. But you
| are using the main one and I can't trip that up.
|
| There are different versions of XML library (what is uses to access the
| web). The docs imply but don't state that it's a stateful connection. But
it
| works fine for me. Possibly you are using a different XML library. The
| filename is msxml3.dll and there were different versions for XP, XP SP1,
and
| Windows 2003 Server (which also comes as MDAC2.8). MS often don't list
| security patches at
|
http://support.microsoft.com/defaul...com/servicedesks/fileversion/dllinfo.asp&fp=1.
|
| Try reading these two articles
| http://support.microsoft.com/default.aspx?kbid=308480&FR=1
| http://support.microsoft.com/default.aspx?kbid=269238&FR=1
|
| Also just check that this is the correct file by checking the registry at
| HKEY_CLASSES_ROOT\Microsoft.XMLHTTP\CLSID
| and looking up the number listed at (I've put in mine)
|
HKEY_CLASSES_ROOT\CLSID\{ED8C108E-4349-11D2-91A4-00C04F7969E8}\InProcServer3
| 2
| --
| ----------------------------------------------------------
| And the band played ....
| http://www.smh.com.au/articles/2004/05/14/1084289883713.html
| | > oh well, can't say we didn't give it the ol' college try, eh mate !
| >
| > thanks much dave, your allright
| >
| > hey, iz there really a yellow brick road, leading to OZ ?!
| >
| > :-)
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top