如何自动运行C#应用程序exe

编程入门 行业动态 更新时间:2024-10-28 11:26:32
本文介绍了如何自动运行C#应用程序exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在c#上创建了一个Windows应用程序.现在,我想每当打开驱动器时就运行该应用程序,例如自动运行的东西.由于Windows 7不支持autorun.inf部分,因此它对我来说变得越来越困难.

I have created a windows application on c#. Now i want to run that application whenever a drive is opened something like auto-run thing.. As windows 7 does not support autorun.inf part its getting difficult for me do it..Guide me. How to achieve this thing.

推荐答案

我怀疑这是可能的,但是如果是这样,C#与它无关,那么您将不得不做一些某种形式的shell扩展可以在自动运行关闭时支持它. I doubt this is possible, but if it is, C# has nothing to do with it, you''ll have to do some sort of shell extension to support this, when autorun is turned off.

请注意:自动运行是邪恶的.这是最不安全的功能之一.在一些优秀的公司中,所有员工都会收到有关如何在其系统中禁用它的建议,在其他情况下,这也是公司的政策.实际上,您也应该禁用自动运行,以避免麻烦.
—SA
Just a note: auto-run is evil. This is one of the most unsafe features. In some good companies, all employees receive recommendations on how to disable it in their systems, in other cases, this is also a company policy. In practice, you should disable auto-run, too, to avoid trouble.
—SA

更多推荐

如何自动运行C#应用程序exe

本文发布于:2023-11-02 13:08:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552488.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   自动运行   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!