Hallo allemaal,
Ik wil gaag meerdere argumenten (met spaties) gebruiken als output. Het werkt wel zonder de spaties maar niet met de spaties. Hoe kan ik toch spaties gebruiken zodat het goed gaat?
Bedankt
Ik wil gaag meerdere argumenten (met spaties) gebruiken als output. Het werkt wel zonder de spaties maar niet met de spaties. Hoe kan ik toch spaties gebruiken zodat het goed gaat?
Visual Basic .NET:
1
2
3
4
5
6
7
8
9
10
11
12
| Dim process As New Process() Dim FileName As String = "notepad" Dim Arguments As String = TextBox1.Text & " " & TextBox2.Text process.StartInfo.UseShellExecute = False process.StartInfo.RedirectStandardOutput = True process.StartInfo.RedirectStandardError = True process.StartInfo.CreateNoWindow = True process.StartInfo.FileName = FileName process.StartInfo.Arguments = Arguments process.Start() Dim output As String = process.StandardOutput.ReadToEnd() TextBox3.Text = output |
Bedankt
[ Voor 1% gewijzigd door BtM909 op 31-10-2013 10:44 ]