0

I am writing a utility for Minecraft Coder pack. It works off batch files that run python. Is it possible to read and write from the cmd into say a text box and run commands for vb.net to the cmd?

1 Answer 1

4

Yes. See my answer here: Opening a plink window from VB.NET application without showing the black ugly plink window

Basically, you want to hide the window, and redirect standard in/out.

Dim p as New Process
With p.StartInfo
    .WindowStyle=ProcessWindowStyle.Hidden
    .RedirectStandardOutput=true
    .RedirectStandardInput=true
End With

You can then read and write using p.StandardInput and p.StandardOutput.

You can find more options to set as well in the ProcessStartInfo class.

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

Comments

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.