Solved

AutoPlay

Posted on 1998-10-26
5
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
bryan7 earned 50 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month4 days, 11 hours left to enroll

635 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