如何自动运行C#应用程序exe [英] How to autorun a c# application exe

查看:226
本文介绍了如何自动运行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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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