Re: hta file refresh output in textarea



"Rich Milburn [MVP]" <richdotmilburnatapplebeesdotcom> wrote in message
news:O$GjJ$VEGHA.1736@xxxxxxxxxxxxxxxxxxxxxxx
>I have an hta that is doing a data migration. It copies lots of files and
>displays status messages in a scrolling textarea. The scripting is
>vbscript. The flow is something like this:
>
> read filename
> textarea.value = textarea.value & "Processing " & filename
> copy filename to destination
> textarea.value = textarea.value & "Copying " & filename
> msgbox "done with these files"
> read another filename
>
> and so on. The thing is, when it stops on a message box, or to pop up a
> folder copy dialog (used for folders but FSO.CopyFile is used for
> individual files) the updates appear in the text area. But if it runs
> through a list of files to copy, even though there may be lots of updates,
> they don't show up until the next dialog box. I can't find a way to force
> the textarea to refresh the display... I've tried timers, and other things
> like that, but no luck. Any ideas?
>
> thanks
> Rich
>
> --
> Rich Milburn
> [MVP - Directory Services]
>
There was an article on "updating the display during lengthy operations" on
MSDN, don't have the link but Google.groups should help.
If you don't mind using Active ScriptX from meadroid.com has a wait method
that services the message queue.

--

Joe Fawcett (MVP)

https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5


.



Relevant Pages

  • hta file refresh output in textarea
    ... displays status messages in a scrolling textarea. ... copy filename to destination ... files) the updates appear in the text area. ... Rich Milburn ...
    (microsoft.public.scripting.vbscript)
  • Re: Unable to verify copied file
    ... > file from a server for which the actual filename will vary when copied ... and there's only ever one of these files on the server share. ... it is my understanding that you can't verify ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Unable to add form: "The operation could not be completed"
    ... After choosing a filename, it says 'The operation could not be completed' and takes me back to the filename chooser. ... As per suggestions found on Google, I first tried to uninstall Windows Scripting 5.6. ... and reinstalled scripting using the installer. ...
    (microsoft.public.vsnet.ide)
  • Unable to add form - "The operation could not be completed"
    ... After choosing a filename, it says 'The operation could not be completed' and takes me back to the filename chooser. ... As per suggestions found on Google, I first tried to uninstall Windows Scripting 5.6. ... and reinstalled scripting using the installer. ...
    (microsoft.public.vstudio.general)
  • Re: Batch File Help
    ... The filename, directory name, or volume label syntax is incorrect. ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx. ...
    (microsoft.public.win2000.general)