C# 開啟檔案總管並指定路徑 (選擇檔案)

打開檔案總管並指定路徑

  
string filename = @"D:\ruyut\Download";
System.Diagnostics.Process.Start("Explorer.exe", $"/e, {filename}");



打開檔案總管並選擇指定檔案(或資料夾)

  
string filename = @"D:\ruyut\Download";
System.Diagnostics.Process.Start("Explorer.exe", $"/e, /select ,{filename}");



留言

  1. 菩薩慈悲:末學用上了。感恩感恩 讚歎讚歎 南無阿彌陀佛
    https://github.com/oscarsun72/TextForCtext/commit/c30719f19e3ce7c697708e6c609f56231379fd42?diff=unified#diff-2bb79072a7c92a916140a0504bc56c61da3877442c84043fce6972c3a0421733R6610

    回覆刪除
  2. 菩薩慈悲:末學用上了。感恩感恩 讚歎讚歎 南無阿彌陀佛
    https://github.com/oscarsun72/TextForCtext/commit/c30719f19e3ce7c697708e6c609f56231379fd42?diff=unified#diff-2bb79072a7c92a916140a0504bc56c61da3877442c84043fce6972c3a0421733R6610

    回覆刪除

張貼留言

如果有任何問題、建議、想說的話或文章題目推薦,都歡迎留言或來信: a@ruyut.com