| | |
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 array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development dll draganddrop drawing encryption enum event excel file finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile globalization httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser wia windows winforms wpf xml






