Click here to Skip to main content
15,867,305 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi
I Want to write a C# program that run at flash memory and anytime memory connect to (any) pc it run and do some work (such downloading some file from internet)

well how I do that? any Idea?

thanks
Posted
Comments
Oshtri Deka 3-Sep-12 7:30am    
Your question is not very comprehensive.
Can you please use punctuation and rephrase your question?
If I deciphered it correctly, you want to create a program which will be copied on memory device and auto-run each time device is connected to pc?
Timberbird 3-Sep-12 7:33am    
Good old (yet not 100% reliable) Autorun.inf is not an option?

I know only one way to execute a program from memory device each time this device is connected to PC (in Windows): place file named "Autorun.inf"[^] in the root of the device and set your program as the run action. This is quite unreliable way, because autorun actions may be disabled by user in OS settings or blocked by antivirus software, but I doubt any another [simple] solution exists
 
Share this answer
 
" a program which will be copied on memory device and auto-run each time device is connected to pc"

Yes , that's correct.
 
Share this answer
 
Yes, that's work.Thanks. but I looking for another solution if exist...
 
Share this answer
 

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