Command to open a directory
Hi, I wish to know the command need to open a directory when a string is passed as a parameter.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Roei BarRank #1,271 · 1.4K reputationPosted Sep 18, 2009, 3:09 AM EDT
Direcrory.Create(path);
if you want to open the Directory for Browsing then
public static void OpenWindow(string path) { System.Diagnostics.Process.Start(path); //If the above doesn't work try System.Diagnostics.Process.Start("explorer.exe", path); }