Google Answers Logo
View Question
 
Q: CD Autorun Code ( No Answer,   4 Comments )
Question  
Subject: CD Autorun Code
Category: Computers > Programming
Asked by: sonici-ga
List Price: $10.00
Posted: 24 Apr 2004 10:11 PDT
Expires: 24 May 2004 10:11 PDT
Question ID: 335475
hello i need a code that i can put on my cd and this code will make an autorun.
It is not easy cause i want it to work this way :
if i put the cd on the computer it must autorun
if i put the cd on the computer and i restarted the computer it must
autorun when the computer logs again to windows
if one tries to open the contents of the cd with the right click the autorun starts
Answer  
There is no answer at this time.

Comments  
Subject: Re: CD Autorun Code
From: slax-ga on 24 Apr 2004 10:32 PDT
 
you just create a file called
autorun.inf
in the CD root directory, with the following content:

[autorun]
OPEN=your_command
ICON=youricon.ico

replace your_command by the program or command you wish to start.
For example if your CD contains setup.exe, add
OPEN=setup.exe

replace youricon.ico by the file with your icon. For example copy
youricon.ico file to the CD's root directory and use
ICON=youricon.ico

You can also use ICON=setup.exe
when your setup program has an icon.

To be able to use autorun, your windows must be configured correctly.
Some software (vmware for example) disables autorun functionality.
There is no way how to force your computer to start autorun from the CD
if it's disabled in windows.
Subject: Re: CD Autorun Code
From: mathtalk-ga on 25 Apr 2004 11:31 PDT
 
In Windows the CD Autorun function can be disabled through the
registery settings, or on a CD by CD basis, simply by holding down the
Shift Key as the CD "launches":

[MS Support: How to Disable CD Autorun in Windows]
http://support.microsoft.com/support/kb/articles/Q155/2/17.ASP

Depending on the intended application, one might also be interested in
booting from a CD, which is possible with reasonably current CD ROM
drives.

regards, mathtalk-ga
Subject: Re: CD Autorun Code
From: kfb320-ga on 25 Apr 2004 20:21 PDT
 
Here are some links to programs that will make the inf autorun files for you...

Freeware version: http://www.ashzfall.com/products/autorun/ 

Another Freeware if downloaded: http://www.karenware.com/powertools/ptautorun.asp

A commercial one with all the bells and whistles:
http://www.karenware.com/powertools/ptautorun.asp

Hope that helps!
Kevin
Subject: Re: CD Autorun Code
From: subone-ga on 26 Apr 2004 17:45 PDT
 
As is said above you can create an autorun.inf file using some easy
third party tools, which also help with right click menus. If autorun
is enabled it would work, if not you're out of luck. As for setting it
up to run on right click RIGHT AWAY, you could use autorun to run a
program that watches for this right click. As for starting up after a
boot, it would have to be in the Run list in the registry, or even
more complex, it would have to boot from the CD and access the file
system to add that key to the registry, and then transfer control to
Windows. Sounds like a mischeivous endevor in any case.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy