程序运行没有管理员权限 [英] Program run without administrator rights

查看:123
本文介绍了程序运行没有管理员权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这里开发了一个窗口应用程序.它将完全以管理员用户身份运行.但它不能在其他交换机用户中运行,在这里我没有收到任何错误.因此,我需要解决此问题的方法.


在此先感谢

Dhinesh Kumar.V

Hi all,

Here am developed one window application. It will run exactly at Administrator user. But it couldnt run in other switch users here i dont get any error.So i need the solution for this problem.


Thanks in Advance

Dhinesh Kumar.V

推荐答案

将以下内容添加到您的Main()中,它将所有错误消息保存到磁盘.
Add the following to your Main() and it will save any error messages to disk.
public static void Main()
{
   try
   {
       // your normal code here
   } 
   catch(Exception ex)
   {
      System.IO.File.WriteAllText("error.txt", ""+ex);
   }
}


这篇关于程序运行没有管理员权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆