Command-Line 옵션 처리 방법
VIZZARD 실행 시 입력된 Command-Line 옵션 처리 예제입니다.
실행 방법
명령 프롬프트(CMD.exe)에서 아래와 같이 실행합니다.
VIZZARD.exe UserCommand1 /UserCommand2 /UserCommand3:A
Plugin에서 옵션 확인 방법
Plugin에서는 다음과 같이 Command-Line 인수를 확인할 수 있습니다.
private void Connector_OnInitializedAppEvent(object sender, EventArgs e)
{
string[] args = Connector.GetApplicationArguments();
foreach (string item in args)
{
System.Diagnostics.Debug.WriteLine(item);
}
}
출력 결과 예시
1 | UserCommand1
2 | /UserCommand2
3 | /UserCommand3:A