728x90
반응형
728x170
using System;
using System.Runtime.InteropServices;
ShellExecute(IntPtr.Zero, "open", "shell:::{3080F90E-D7AD-11D9-BD98-0000947B0257}", null, null, 10);
#region 쉘 실행하기 - ShellExecute(windowHandle, operation, filePath, parameter, directoryPath, command)
/// <summary>
/// 쉘 실행하기
/// </summary>
/// <param name="windowHandle">윈도우 핸들</param>
/// <param name="operation">조작</param>
/// <param name="filePath">파일 경로</param>
/// <param name="parameter">매개 변수</param>
/// <param name="directoryPath">디렉토리 경로</param>
/// <param name="command">명령</param>
/// <returns>인스턴스 핸들</returns>
[DllImport("shell32")]
private static extern IntPtr ShellExecute(IntPtr windowHandle, string operation, string filePath, string parameter, string directoryPath, int command);
#endregion
728x90
반응형
그리드형(광고전용)
'C# > Common' 카테고리의 다른 글
[C#/COMMON] DateTime 구조체 : 유닉스(UNIX) 타임 스탬프에서 지역 날짜/시간 구하기 (닷넷 버전 4.6 이전) (0) | 2021.04.30 |
---|---|
[C#/COMMON] DateTime 구조체 : 유닉스(UNIX) 타임 스탬프 구하기 (닷넷 버전 4.6 이전) (0) | 2021.04.30 |
[C#/COMMON] UTF8Encoding 클래스 : UTF-8(BOM) 인코딩 방식으로 파일 생성하기 (0) | 2021.04.30 |
[C#/COMMON] RegistryKey 클래스 : 설치 프로그램 버전 구하기 (0) | 2021.04.29 |
[C#/COMMON] 누겟 설치 : Otp.NET (0) | 2021.04.26 |
[C#/COMMON] Process 클래스 : StandardOutput 속성을 사용해 PING 실행 결과 출력하기 (0) | 2021.04.16 |
[C#/COMMON] ManagementObject 클래스 : 윈도우즈 서비스 파일 경로 구하기 (0) | 2021.04.15 |
[C#/COMMON] 최소화된 UWP 앱을 일반 상태로 표시하기 (0) | 2021.04.15 |
[C#/COMMON] 화면 보호기 표시하기 (0) | 2021.04.15 |
[C#/COMMON] Process 클래스 : 윈도우 핸들을 갖고 프로세스 파일 경로 구하기 (0) | 2021.04.14 |
댓글을 달아 주세요