Programming/C# - Window
C#/ 파일 프로세스 실행
esoog Polaris
2024. 9. 20. 18:02
# 파일 프로세스 실행 코드
/// <summary>
/// 파일 프로세스 실행
/// </summary>
/// <param name="filePath"></param>
/// <param name="bUseShellExecute"></param>
public void FileProcessStart(string filePath)
{
try
{
if (File.Exists(filePath))
{
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo
{
FileName = filePath,
UseShellExecute = true
});
}
}
catch (Exception ex)
{
// Debug
}
}
반응형