Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27355

How to Start process using TextBox, and Replace Process Text With TextBox?

$
0
0
Hi everyone, I recently had to ask for help using using a TextBox to Replace text in URL to navigate a Webpage.

And thanks to Paul, He sent me a code close to this one:
Code:

WebBrowser1.Navigate(String.Format("http://SHOP-ID/page1/?id={0}", TextBox1.Text))
So what it does it replaces {0} with the content of TextBox1.

I was now wondering how to use the same thing starting a process, by replacing text using "Process.Start" in my command line, or simply executing a text in cmd?

Example:
Quote:

c:\Program Files\Matador\start.exe -easy level1
How can replace the text "level 1" with a TextBox, so I choose the leverl my self. I am very new in vBNet and I tried different ways, and also changed Pauls code, but cant figure it out..

If anyone had an Idea for this, Then thank you very much in advance!

PS, A Big thanks to .Paul for helping out with Replacing text in URL..

Viewing all articles
Browse latest Browse all 27355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>