I want to open a folder that is in the same directory as my form
An example of this would be I have a folder named Folder1 in the directory of my form / exe, and you would click a button to open Folder1, how would I do that?
I tried doing
System.Diagnostics.Process.Start("explorer.exe", AppDomain.CurrentDomain @"\Folder1");
there was no error, it was just a prompt that said "You need a new app to open this"
CodePudding user response:
Use this code
System.Diagnostics.Process.Start("explorer.exe" , AppDomain.CurrentDomain.BaseDirectory "Folder1");