Timeout a VBScript?

Home Forums Scripting General Scripting Timeout a VBScript?

Viewing 1 post (of 1 total)
  • Author
    Posts

  • humbletech99
    Member
    #129333

    Is there a way to set a maximum time on execution of a vbscript from within the vbscript itself?

    Eg. in some languages you can set an alarm function near the beginning which terminates the script with a custom message if execution of the rest of the script takes longer than X seconds.

    This means that if a later part of the script was to hang, the alarm mechanism started near the beginning would kill the remaining execution and exit gracefully with a message.

    Any ideas on a timeout of execution within a vbscript? Perhaps some COM method? I’m not sure if I’m close with something like System.Windows.Forms.Timer or if I’m way off.

    In any event I need it to be portable and not rely on installing the .NET framework. It has to come bundled with all modern windows versions, 2000/2003/XP…

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

13 Email Threat Types to Know About Right Now

As email threats evolve and multiply, keeping track of them all—and staying protected against the many different types—becomes a complex challenge. Today, that requires more than just the traditional email gateway solution that used to be good enough.

In this eBook you will learn:

  • What are the most common and challenging email attacks for organizations?
  • How to defend against sophisticated email threats, such as spoofing, social engineering, and fraud
  • How to protect employees at the inbox level with the right technologies and security-awareness training
  • How to use a multilayered protection strategy to reduce susceptibility to email attacks and better defend your business and employees

Sponsored by: