0

I have a PowerShell script that downloads a file from a website.

I'd like to show the progress of the download in an TextBox of my form.

How can I do that?

EDIT:

I start my process with:

Process.Start("powershell.exe", "-executionpolicy remotesigned -file C:\temp\test.ps1")

1 Answer 1

1

Investigate the Process Class, which allows you to run the script and re-direct the standards streams.

Sign up to request clarification or add additional context in comments.

4 Comments

Thx for ur quick answer :) Finally, how exactly to do that?
@hannir Go to the link in the answer and investigate all the different things that, that class, will do.
You mean something like that right?
That will be to send input to the process. To get data back you need to redirect the standardoutput

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.