Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $status = "processing";
- # write first message with -NoNewLine
- write-host $status -NoNewline;
- foreach ($i in 1..3) {
- sleep 1
- $status += "."
- # Write All updated messages starting with carriage return (`r) and -NoNewLine
- write-host "`r$status" -NoNewline
- }
- # To append a final message, exclude -NoNewLine
- write-host " complete!";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement