1.前言開啟檔案夾瀏覽視窗,獲取選擇的檔案夾路徑。 2.說明程式碼: FolderBrowserDialog dialog = new FolderBrowserDialog(); dialog.SelectedPath = "C:\\"; if (dialog.ShowDialog() == DialogResult.OK) { MessageBox.Show("Select Path: " + dialog.SelectedPath); }