Click here to Skip to main content
15,921,250 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

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.
 
Share this answer
 
Comments
namaskaaar 9-Feb-12 13:56pm    
Any idea about how to that??
Christian Graus 9-Feb-12 13:58pm    
No, I'm not sure it's even possible, but it will be written in C++ and the user will need to install it in order for it to work, so you're back at trying to make the user run something.
namaskaaar 9-Feb-12 14:02pm    
ok thanx a lot.i'll try something..like batch coding thing..
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
 
Share this answer
 
v4
Comments
Espen Harlinn 9-Feb-12 16:45pm    
5'ed! - I agree, this feature allowed stuxnet to work
Sergey Alexandrovich Kryukov 9-Feb-12 16:57pm    
Certainly. Thank you, Espen.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900