Solved

display progress on the screen from vbs script.

Posted on 2006-07-09
4
316 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 300 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:Raisor
Raisor earned 200 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Counting documents in a Domino View 3 84
C# code editing and collaboration 3 115
Not needed 13 113
SQL Insert parts by customer 12 34
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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 fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

810 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