-
728x90
C#에서 특정 경로의 폴더나 파일을 Windows 탐색기에서 열려면
Process.Start 메서드를 사용합니다.
이 때, ProcessStartInfo 클래스를 이용하여 Process 객체를 생성하고,
ProcessStartInfo 객체의 Arguments 속성에 "Explorer.exe"와 함께 열고자 하는 경로를 전달합니다.
아래는 C#에서 특정 경로의 폴더를 Windows 탐색기에서 여는 예시 코드입니다.using System.Diagnostics; class Program { static void Main(string[] args) { string path = @"C:\MyFolder"; Process.Start(new ProcessStartInfo() { FileName = "Explorer.exe", Arguments = path }); } }728x90댓글