OpenFileDialog dlg = new OpenFileDialog();
-
Hello all: I have this code below to display whatever the Browse is selected. For example, if user select C:\cmd.exe. I would like to add the "*" after backward slash. So it would be C:\cmd.exe\*. OpenFileDialog dlg = new OpenFileDialog(); if (dlg.ShowDialog() == DialogResult.OK) { tb_batchparams.Text = dlg.FileName; } System.Diagnostics.Process proc1; System.Diagnostics.ProcessStartInfo procInfo = new System.Diagnostics.ProcessStartInfo(); procInfo.WorkingDirectory = "C:\\dcm\\bin"; procInfo.FileName = "scu.exe"; procInfo.Arguments = tb_batchparams.Text // how do I include "\*" so it would be C:\dcm\bin\scu.exe\* instead. proc1 = System.Diagnostics.Process.Start(procInfo); Thanks, eyungwah
-
Hello all: I have this code below to display whatever the Browse is selected. For example, if user select C:\cmd.exe. I would like to add the "*" after backward slash. So it would be C:\cmd.exe\*. OpenFileDialog dlg = new OpenFileDialog(); if (dlg.ShowDialog() == DialogResult.OK) { tb_batchparams.Text = dlg.FileName; } System.Diagnostics.Process proc1; System.Diagnostics.ProcessStartInfo procInfo = new System.Diagnostics.ProcessStartInfo(); procInfo.WorkingDirectory = "C:\\dcm\\bin"; procInfo.FileName = "scu.exe"; procInfo.Arguments = tb_batchparams.Text // how do I include "\*" so it would be C:\dcm\bin\scu.exe\* instead. proc1 = System.Diagnostics.Process.Start(procInfo); Thanks, eyungwah
use
@"\*
" or"\\*
"SkyWalker