Tom
Tue Jan 29 14:52:30 CST 2008
On Jan 29, 3:42 pm, "TDM" <rpu...@gmail.com> wrote:
> "Raj" <rajkiran...@gmail.com> wrote in message
>
> news:3B11ABAD-3A95-4E20-8CA6-F658A1827940@microsoft.com...
>
> > Hi,
>
> > I have written a vbscript that takes input from user.
>
> > Is there any function we can use if script get timout automatically OR
> > user has not provided a specific input during that time OR user will
> > terminate script by pressing Crtl-C. Then system should logoff
> > automatically.
>
> > regards
>
> > Raj
>
> If you run your scripts via CScript versus WScript, CTRL-C works just fine.
>
> TDM
There is also a timeout switch for scripting:
//T:nn Time out in seconds: Maximum time a script is permitted to
run
It is functional for either the cscript or wscript host and can either
be set as the default (not generally advised) or for a specific script
execution. Usually this would be in the shortcut parameter list;
otherwise, by whatever agent called the script.
Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/