• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

display progress on the screen from vbs script.

Not using visual basic here, but vbs script from the desktop.

What I want to do as an example is display the progress of a vbs script to the screen.

e.g

for x= 1 to 2000

put the value of x on the screen

do some more stuff

next

The simple output is normally wscript.echo,
But this stops the code waiting for an ok response from the user.

Any ideas please.



0
harveygs
Asked:
harveygs
  • 3
2 Solutions
 
dave4dlCommented:
execute your code using cscript (and continue to use echo)
0
 
dave4dlCommented:
'save as text.vbs
'execute with: cscript test.vbs

for x = 1 to 10
    wscript.echo x
next
0
 
dave4dlCommented:
does this work for you?
0
 
Ralf KlattConcerned World CitizenCommented:
Hi,

This might seem a fade too much to your question ... but I'd still suggest reading this article: http://www.microsoft.com/technet/scriptcenter/topics/help/wmidiag.mspx

... I'm referring to this article because it gives you a professional approach (including source code!) to: "As the tool runs it displays detailed progress information on the screen" ...


Hope this helps!
Best regards,
Raisor
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now