Solved

Rewrite line

Posted on 2013-10-23
1
169 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Synchronize a new Active Directory domain with an existing Office 365 tenant
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

18 Experts available now in Live!

Get 1:1 Help Now