VBScript1 [C#] C#에서 VBScript 실행시키기 example.vbs 파일 내용 arg1 = WScript.Arguments.Item(0) arg2 = WScript.Arguments.Item(1) Msgbox arg1 Msgbox arg2 example.vbs 파일을 실행하는 C# 코드 System.Diagnostics.Process scriptProc = new System.Diagnostics.Process(); scriptProc.StartInfo.FileName = @"cscript"; // vbs 파일 경로를 원하는 위치에 맞게 변경 & argument 추가될 때마다 {num} 추가(1부터 시작), 파일 경로 뒤에 argument 값 삽입 scriptProc.StartInfo.Arguments = string.Format("\"{0}\" \.. 2021. 3. 29. 이전 1 다음 728x90