Solved

display progress on the screen from vbs script.

Posted on 2006-07-09
4
313 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is the compatible hibernate version for spring 4.3.1 10 75
bunnyEars challenge 6 99
word0 challenge 3 78
Help to convert powershell script into a gui 9 135
A short article about a problem I had getting the GPS LocationListener working.
This is an explanation of a simple data model to help parse a JSON feed
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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 …

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now