1
我目前正在從一個OpenFileDialog獲取文件列表和添加,然後到一個列表這樣獲取文件列表,並將其傳遞到CMD
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);
}
}
我怎麼會從列表中獲取單個文件名,並通過他們到CMD.EXE