Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

AutoPlay

Posted on 1998-10-26
5
Medium Priority
?
222 Views
Last Modified: 2010-04-06
I am wanting to put a program on a CD. How can I create an AutoPlay insert notification. i.e. so the CDRom starts up and goes straight to my application?
0
Comment
Question by:xpher
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
bryan7 earned 200 total points
ID: 1344428
This way:



Place a file like this in the root.

Example: File name; Autorun.inf

[autorun]
open = MyProgram.exe

bryan =)

0
 
LVL 3

Expert Comment

by:bryan7
ID: 1344429
And to make the CD have an Icon:

[autorun]
Icon=MyProgram.exe,0  <------- if the exe has any icon inside.
Open=MyProgram.exe

if your exe doesn't have any icon, then:

[autorun]
Icon=MyIcon.ico
Open=MyProgram.exe

remember that it must be in a file called " Autorun.inf " in the root dir of the cd.

bryan

0
 
LVL 1

Author Comment

by:xpher
ID: 1344430
To bryan7

Thanks for quick response.

Sorry if this sounds stupid, but I can't afford to waste too many CD's in experimenting.

Can I create the Autorun.inf in say Notepad?

Also, what if my exe is in a directory, called say 'Mine'. Would I have to write
[autorun]
Icon=MyProgram.exe,0  
Open=Mine\MyProgram.exe
??

Look forward to hearing from you

xpher
(Chris :-) )

0
 
LVL 3

Expert Comment

by:bryan7
ID: 1344431
You can do it:

[AUTORUN]
OPEN=programs\program.exe
ICON=main\images\image.ico

your program and icon can be in any directory.
And if you included any Icon inside your program, then you can use it.
(icon=program.exe,0)

hope it helps.

bryan =)



0
 
LVL 1

Author Comment

by:xpher
ID: 1344432
Thanks Bryan.

Regards
Chris :-))
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question