| | |
how to create autostart programme using c#?
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
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.?
Views: 5212 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button buttons c# chat check checkbox class client code combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ http httpwebrequest image index input install label list listbox listener login mandelbrot math mouseclick mysql networking operator oracle path photoshop picturebox pixelinversion prime programming radians regex remote remoting resource richtextbox save saving serialization server socket sql statistics stream string table tcp text textbox time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






