Terminate vbscript after x minutes

前端 未结 4 1381
鱼传尺愫
鱼传尺愫 2021-01-14 03:09

I am working on a script with vbscript, and I would like it to terminate itself after x number of minutes.

I was thinking something like grabbing the time when the s

4条回答
  •  时光取名叫无心
    2021-01-14 04:14

    I appreciate all of the answers here, but they are more complicated than I wanted to get in to.

    I was very surprised to find out that there is a way to do it built into WScript.

    WScript.Timeout = x_seconds
    

提交回复
热议问题