Source language: Translate to:

Time out in vb-scripts

Questions and information about using VBScript and JavaScript in NeoBook functions

Moderator: Neosoft Support

Time out in vb-scripts

Postby sombra » Sun Feb 08, 2009 3:46 pm

Hello,
I am running a VBscript inside a neobook application. The script works fine, but when the script is handling about 10000 files or more, then a message appear with the next text:

Code: Select all
Script Control
==============

The script you are executing is taking longer than
expected to run. Click End to abort the script,  or
Continue to continue script execution.


[ End ]    [ Continue ]


I tried writing: wscript.timeout = 0 inside the script for set an infinite value, but it seems be ignored.
Is there a way for change this behaviour? or... Is it a predefined value in neobook?

TIA.
I can read English, but... I write like Tarzan. (sorry)
sombra
 
Posts: 93
Joined: Sat Apr 02, 2005 3:09 pm
Location: Spain

Postby Horst Helfen » Mon Feb 09, 2009 2:36 am

I propose to split your script into smaller parts which process not as many files each.
Horst Helfen

Programmers don't die, they just GOSUB without RETURN.
User avatar
Horst Helfen
 
Posts: 100
Joined: Thu May 05, 2005 4:11 am
Location: Hamburg, Germany

Postby Neosoft Support » Mon Feb 09, 2009 5:43 pm

I think that the "wscript" object is only supported for VBScripts that run from a command prompt. Instead you might try one of these:

session.Timeout = 0

server.ScriptTimeout = 0
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5603
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby sombra » Sun Mar 29, 2009 2:08 pm

Hello Neosoft!

NeoBook v5 Version History.rtf wrote:Added a global variable called [WSHTimeOut] which can be used to modify the timeout value (in seconds)...


THANK YOU SO MUCH!! :D

This new variable solve the problem commented above. Really, I was wasting many time searching for a solution, but this woks fine in all my tests done.
Thanks again for add this feature and for hear to users.
I can read English, but... I write like Tarzan. (sorry)
sombra
 
Posts: 93
Joined: Sat Apr 02, 2005 3:09 pm
Location: Spain


Return to NeoBook Functions - VBScript & JavaScript

Who is online

Users browsing this forum: No registered users and 0 guests