VBScript script progress notification

前端 未结 4 1599
花落未央
花落未央 2021-01-04 12:25

I\'m a VBScript novice, writing a script that will be parsing large input file(s) and will likely take several minutes run time to complete processing. I need a way to aler

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-04 12:47

    Don't use popup messages for this unless you want to annoy the heck out of your users. Wrap your code in an HTA that displays a progress indicator like the one in this page, e.g.:

    
    
    Sample
    
    
    
    
    
    
    
    
    

    If you want to provide some more dynamic information, you could for instance add a paragraph like this to the body:

    and update it every 1000 records:

    ...
    If numRows Mod 1000 = 0 Then
      If sline.style.visibility = "hidden" Then sline.style.visibility = "visible"
      rcount.innerText = numRows
    End If
    ...
    

提交回复
热议问题