Solved

Rewrite line

Posted on 2013-10-23
1
172 Views
Last Modified: 2013-11-07
Is it possible to rewrite a line from write-host?

For example I want to display progress, but rewrite it with the updated progress, so display something like:-
Process ======== 27%

Then update it to:-
Process ========== 33%

Instead of having to put the write on individual lines:-
Process ======== 27%
Process ========== 33%
0
Comment
Question by:tonelm54
1 Comment
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39593674
Hi,
instead of using Write-Host use the cmdlet
Write-Progress
http://technet.microsoft.com/en-us/library/ff730943.aspx

HTH
Rainer
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 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