Grupos de Google ya no admite nuevas publicaciones ni suscripciones de Usenet. El contenido anterior sigue siendo visible.

Question about the Sleep method

Visto 385 veces
Saltar al primer mensaje no leído

Chris ( Val )

no leída,
28 mar 2004, 9:09:4728/3/04
a
Hi everyone.

I have been trying to find out what the maximum
limit for the Sleep() method is.

For example:

Wscript.Sleep( SomeMaxNumber )

I have looked, but am finding it very difficult
to find.

Anyone know of the limit ?, or point me to the documentation
where it is stated ?

I need to provide some sort of delay(approx 30 to 60 mins),
but I have a feeling that the Sleep() method may not allow
that long, but I just can't find anywhere where it says so.

If this is out of the question for the Sleep() method, then
is there a better way ?

Thanks.
Chris Val


Se ha eliminado el mensaje

Austin M. Horst

no leída,
28 mar 2004, 10:01:0928/3/04
a
The maximum sleep time depends on the Scripting Host version.
You will receive the following error if the number exceeds the limit:
Error: Overflow: 'Wscript.Sleep'
Code: 800A0006
Source: Microsoft VBScript runtime error

Be safe, if you must go beyond 2,000,000,000 milliseconds, use a second sleep statement.
Wscript.Sleep 2000000000
Wscript.Sleep 2000000000


Austin M. Horst

Chris ( Val )

no leída,
28 mar 2004, 10:57:3128/3/04
a
Thanks for the excellent replies everyone :-).

Btw, in what documentation did you find this ?
I couldn't find it at all.

Cheers.
Chris Val


"Chris ( Val )" <chri...@bigpond.com.au> wrote in message
news:c46mb6$2evgmu$1...@ID-110726.news.uni-berlin.de...

Se ha eliminado el mensaje

Chris ( Val )

no leída,
29 mar 2004, 7:53:0329/3/04
a
Thanks Christoph.

Cheers.
Chris Val


"Christoph Basedau" <e_t...@hotmail.com> wrote in message
news:40676b2e$0$17763$9b4e...@newsread2.arcor-online.net...


| 28.03.2004 17:57, Chris ( Val ) schrieb:
| > Thanks for the excellent replies everyone :-).
| >
| > Btw, in what documentation did you find this ?
| > I couldn't find it at all.
|

| Most VBS and WSH-methods receiving (long) int-inparams
| have this limit. It's document in the script-help
| (script56.CHM).
| Have a look at the VBScript-datatype reference.
| If its installed on your local computer and "C:\Script56.CHM"
| is the local path, then type:
|
| mk:@MSITStore:C:\Script56.CHM::/html/vbsdatatype.htm
|
| into the run-box, press enter (modify local path, if necessary) or goto:
| http://msdn.microsoft.com/library/en-us/script56/html/vbsDataType.asp


|
| > | I have been trying to find out what the maximum
| > | limit for the Sleep() method is.
| > |
| > | For example:
| > |
| > | Wscript.Sleep( SomeMaxNumber )
|
|

| --
| Gruesse, Christoph


0 mensajes nuevos