Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

AutoPlay

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
xpher
Asked:
xpher
  • 3
  • 2
1 Solution
 
bryan7Commented:
This way:



Place a file like this in the root.

Example: File name; Autorun.inf

[autorun]
open = MyProgram.exe

bryan =)

0
 
bryan7Commented:
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
 
xpherAuthor Commented:
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
 
bryan7Commented:
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
 
xpherAuthor Commented:
Thanks Bryan.

Regards
Chris :-))
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now