Thread Sleep in Classic ASP?

后端 未结 12 2124
滥情空心
滥情空心 2021-02-05 23:10

I\'m doing some revision on an old app that is written in classic ASP/VbScript.

It has a feature to send out an e-mail to the members of the application, but because the

12条回答
  •  借酒劲吻你
    2021-02-05 23:12

    You can use :

    
    
        Sleep
    
    
        <% 
    
            function Sleep(seconds)
                set oShell = CreateObject("Wscript.Shell")
                cmd = "%COMSPEC% /c timeout " & seconds & " /nobreak"
                oShell.Run cmd,0,1
            End function
    
            Sleep(5)
    
            response.write("End") 
        %>
    
    
    

提交回复
热议问题