I am currently getting a file list from an OpenFileDialog and adding then into a list this way
private void BtnSelect_Click(object sender, RoutedEventArgs e)
{
OpenFileDialog Open = new OpenFileDialog();
Open.Filter = "RIFF/RIFX (*.Wav)|*.wav";
Open.CheckFileExists = true;
Open.Multiselect = true;
Open.ShowDialog();
LstFile.Items.Clear();
foreach (string file in Open.FileNames)
{
LstFile.Items.Add(file);
}
}
How would i Get the individual file names from the list and pass them into cmd.exe
Here’s how to make a process with arguments
just pass whatever arguments you want to pass in place of
arg1andarg2If you need to know how to get output from the process, just say so and I’ll include that too.
you can get individual filenames by iterating over your list, just use a
foreachloop