how to create autostart programme using c#?

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2007
Posts: 41
Reputation: IT_Techno is an unknown quantity at this point 
Solved Threads: 0
IT_Techno IT_Techno is offline Offline
Light Poster

how to create autostart programme using c#?

 
0
  #1
Dec 6th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: how to create autostart programme using c#?

 
0
  #2
Dec 6th, 2007
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
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 41
Reputation: IT_Techno is an unknown quantity at this point 
Solved Threads: 0
IT_Techno IT_Techno is offline Offline
Light Poster

Re: how to create autostart programme using c#?

 
0
  #3
Dec 6th, 2007
Originally Posted by alc6379 View Post
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,
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: how to create autostart programme using c#?

 
0
  #4
Dec 6th, 2007
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/
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1
Reputation: Irakli32 is an unknown quantity at this point 
Solved Threads: 0
Irakli32 Irakli32 is offline Offline
Newbie Poster

Re: how to create autostart programme using c#?

 
0
  #5
Jul 16th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 5
Reputation: ademzuberi is an unknown quantity at this point 
Solved Threads: 0
ademzuberi ademzuberi is offline Offline
Newbie Poster

Re: how to create autostart programme using c#?

 
0
  #6
Aug 6th, 2008
try saving a file AUTORUN.INI, not .INF with the following lines of code:
  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

  1. icon=icon.ico or icon=ProgramName.exe
Last edited by ademzuberi; Aug 6th, 2008 at 4:56 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 7
Reputation: karabela is an unknown quantity at this point 
Solved Threads: 0
karabela's Avatar
karabela karabela is offline Offline
Newbie Poster

Re: how to create autostart programme using c#?

 
0
  #7
Aug 6th, 2008
this works believe me.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 5
Reputation: ademzuberi is an unknown quantity at this point 
Solved Threads: 0
ademzuberi ademzuberi is offline Offline
Newbie Poster

Re: how to create autostart programme using c#?

 
0
  #8
Aug 6th, 2008
Mark it as solved if it did work
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC