[英]ProcessStartInfo Verb runas?
I cant find the methode in the class, furthermore the methode password is now PasswordInClearText are they any changelogs or anything? 我在类中找不到方法,而且方法密码现在是PasswordInClearText,它们是任何更改日志还是其他内容?
How can i run a process in admin mode now? 我现在如何在管理员模式下运行进程? this didnt worked-->
这没有用->
System.Diagnostics.ProcessStartInfo procStartInfo = new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command);
procStartInfo.UserName = "Memyself";
procStartInfo.PasswordInClearText = "password";
Change your TargetFramework to version of .NET Framework https://msdn.microsoft.com/en-us/library/bb398202.aspx 将您的TargetFramework更改为.NET Framework版本https://msdn.microsoft.com/zh-cn/library/bb398202.aspx
Based on the information you have provided, I would guess you are targeting .NET Core, which does not have a Property for Verb in ProcessStartInfo. 根据您提供的信息,我猜您正在将.NET Core作为目标,而.NET Core在ProcessStartInfo中没有动词属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.