So, I am running into an issue. I am wanting to display the contents of the open CMD window in my Rich Text Box. Any help? Thanks.
NetJunkie
29
Junior Poster
Recommended Answers
Jump to PostI hope you get things started with this little snippet
Dim cmdProcess As Process cmdProcess = New Process() ' Dump all info from ipconfig command cmdProcess.StartInfo.Arguments = "/ALL" ' Run command: ipconfig cmdProcess.StartInfo.FileName = "ipconfig" ' Redirect stdout cmdProcess.StartInfo.RedirectStandardOutput = True ' Set to false, otherwise you …
Jump to PostI am wanting to display the contents of an already open CMD window
Ok, so that _was_ critical :) My example shows a neat & clean way to redirect stdout if and only if you can open the command prompt yourself.
was thinking I could read the header of the …
All 7 Replies
Teme64
215
Veteran Poster
NetJunkie
29
Junior Poster
Teme64
215
Veteran Poster
NetJunkie
29
Junior Poster
NetJunkie
29
Junior Poster
Teme64
215
Veteran Poster
Teme64
215
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.