943,697 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 10082
  • C# RSS
Dec 6th, 2007
0

how to create autostart programme using c#?

Expand Post »
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,
Last edited by IT_Techno; Dec 6th, 2007 at 6:06 am.
Reputation Points: 10
Solved Threads: 0
Light Poster
IT_Techno is offline Offline
41 posts
since Dec 2007
Dec 6th, 2007
0

Re: how to create autostart programme using c#?

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
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Dec 6th, 2007
0

Re: how to create autostart programme using c#?

Click to Expand / Collapse  Quote originally posted by alc6379 ...
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,
Reputation Points: 10
Solved Threads: 0
Light Poster
IT_Techno is offline Offline
41 posts
since Dec 2007
Dec 6th, 2007
0

Re: how to create autostart programme using c#?

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/
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Jul 16th, 2008
0

Re: how to create autostart programme using c#?

Re:How to create autostart of program using C#?

I want that when the computes turn's on program automatically start working.(like the "Skype" or Antivirus).

many thx.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Irakli32 is offline Offline
1 posts
since Jul 2008
Aug 6th, 2008
0

Re: how to create autostart programme using c#?

try saving a file AUTORUN.INI, not .INF with the following lines of code:
C# Syntax (Toggle Plain Text)
  1. [autorun]
  2. open=ProgramName.exe
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)
  1. icon=icon.ico or icon=ProgramName.exe
Last edited by ademzuberi; Aug 6th, 2008 at 4:56 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ademzuberi is offline Offline
5 posts
since Apr 2007
Aug 6th, 2008
0

Re: how to create autostart programme using c#?

this works believe me.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
karabela is offline Offline
7 posts
since Jul 2008
Aug 6th, 2008
0

Re: how to create autostart programme using c#?

Mark it as solved if it did work
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ademzuberi is offline Offline
5 posts
since Apr 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Gif image Extraction
Next Thread in C# Forum Timeline: How can i make a list of value window in asp.net 2.0 with c#





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC