?
Solved

display progress on the screen from vbs script.

Posted on 2006-07-09
4
Medium Priority
?
349 Views
Last Modified: 2008-02-01
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
Comment
Question by:harveygs
  • 3
4 Comments
 
LVL 15

Accepted Solution

by:
dave4dl earned 900 total points
ID: 17068848
execute your code using cscript (and continue to use echo)
0
 
LVL 15

Expert Comment

by:dave4dl
ID: 17068852
'save as text.vbs
'execute with: cscript test.vbs

for x = 1 to 10
    wscript.echo x
next
0
 
LVL 15

Expert Comment

by:dave4dl
ID: 17068855
does this work for you?
0
 
LVL 15

Assisted Solution

by:Ralf Klatt
Ralf Klatt earned 600 total points
ID: 17069586
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question