| | |
how to create autostart programme using c#?
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2007
Posts: 41
Reputation:
Solved Threads: 0
hi
i need help
i want away to create aprogramme using C# that when i connect my USB flash to my computer it automaticaly run another .exe c# exist on my USB flash, how can i write aprogramme do that?
if any one have an idea please help me
Many Thanks,
i need help
i want away to create aprogramme using C# that when i connect my USB flash to my computer it automaticaly run another .exe c# exist on my USB flash, how can i write aprogramme do that?
if any one have an idea please help me
Many Thanks,
Last edited by IT_Techno; Dec 6th, 2007 at 6:06 am.
That's not so much a C# question as it is one of Windows file management. Check out this information on AutoRun:
http://msdn2.microsoft.com/en-us/library/bb776823.aspx
http://msdn2.microsoft.com/en-us/library/bb776823.aspx
Alex Cavnar, aka alc6379
•
•
Join Date: Dec 2007
Posts: 41
Reputation:
Solved Threads: 0
•
•
•
•
That's not so much a C# question as it is one of Windows file management. Check out this information on AutoRun:
http://msdn2.microsoft.com/en-us/library/bb776823.aspx
i want solution for making a USB Flash (Removable) Disk to run a file (such as AUTORUN.INF) automatically. this way does not work with USB Flash (Removable) Disk it work with CD-ROM only. i want to make it with USB Flash if you have suggestions
Many Thanks,
There's still some similarity. Check these links out:
http://msdn2.microsoft.com/en-us/library/bb776827.aspx
and this blog looks good:
http://www.lazycoder.com/weblog/inde...b-flash-drive/
http://msdn2.microsoft.com/en-us/library/bb776827.aspx
and this blog looks good:
http://www.lazycoder.com/weblog/inde...b-flash-drive/
Alex Cavnar, aka alc6379
•
•
Join Date: Apr 2007
Posts: 5
Reputation:
Solved Threads: 0
try saving a file AUTORUN.INI, not .INF with the following lines of code:
and after that u can for ex.: change the attribute to the files so they wouldn't be visible, or even add an icon to the usb drive by ading the folowing in AUTORUN.INI
C# Syntax (Toggle Plain Text)
[autorun] open=ProgramName.exe
C# Syntax (Toggle Plain Text)
icon=icon.ico or icon=ProgramName.exe
Last edited by ademzuberi; Aug 6th, 2008 at 4:56 am.
![]() |
Other Threads in the C# Forum
- Previous Thread: Gif image Extraction
- Next Thread: Exception has been thrown by the target of an invocation.?
| Thread Tools | Search this Thread |
.net access algorithm api array asp.net barchart bitmap box broadcast buttons c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum event eventhandlers excel file firefox form format forms function gdi+ httpwebrequest image index input install java label libraries list listbox loop mandelbrot math mouseclick movingimage mysql mysql.data.client operator path photoshop php picturebox pixelinversion post programming radians regex remote remoting resourcefile richtextbox server sleep socket sql statistics stream string study system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf xml






