I have a button, and I use Process.Start when clicking it, although I select data from textBox1.Text.
Although this data on textBox1.Text does not come out properly if there are spaces in textBox1.Text
e.g. textBox1.Text = testing_123 works
although textBox1.Text = testing 1 2 3 doesn’t work (it will only include “testing”)
The code is below:
private void button19_Click(object sender, EventArgs e)
{
Process.Start("test.exe", textBox1.Text);
}
Simply quote the args like this before passing: