[VB.net] 관리자 권한으로 실행시키기 이번에는 관리자 권한으로 프로그램을 실행하는 방법을 알아볼까 합니다. 일단 소스부터 보시죠. Dim id As WindowsIdentity = WindowsIdentity.GetCurrent() Dim p As WindowsPrincipal = New WindowsPrincipal(id) Dim startInfo As ProcessStartInfo = New ProcessStartInfo() If p.IsInRole(WindowsBuiltInRole.Administrator) = False And Environment.OSVersion.Version.Major < 6 = False Then startInfo.UseShellExecute = True startInfo.WorkingDirectory = En.. 더보기 이전 1 ··· 34 35 36 37 38 39 40 ··· 45 다음