Solved

autoloading from a cd

Posted on 2002-05-15
5
138 Views
Last Modified: 2010-05-02
i'm not sure if this is the right place to ask this question, but i wrote an application in visual basic and would like to know how to make it automatically run whenever the cd that it comes on is inserted? is this a vb setting or a cd setting?
0
Comment
Question by:xorcrack
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
mirtol earned 100 total points
ID: 7012405
It's done on the CD, you must place a file called AUTORUN.INF in the root directory of the CD which is a text file containing the following:

[autorun]
open=myapplication.exe
icon=myicon.ico

Or the icon= can point to the app if you want the CD to have the icon from the executable.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7012411
mirtol,


Welcome to EE, please re-read the EE Guidelines (http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp) before proposing solutions as answers.  

Anthony
0
 
LVL 2

Expert Comment

by:mirtol
ID: 7012431
I'm sorry for any offence, but I was and still am of the opinion that this conformed to the guidelines.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7012492
No offense.  But take a look at the following:

<quote>
Often, an Expert posts the solution to your problem as a comment because it is early in the collaboration process and other issues may be involved. In addition, it is common etiquette in some topics areas to always post comments and not answers. There are several reasons behind this thinking:

Questions do not become prematurely locked and the collaboration process is not inhibited when the question is indexed as open for proposed solutions.
The question-asker has the power to select the best solution rather than one that is simply suggested as an answer.
Watch out for unclear or multiple-part questions. You can send a comment to the member requesting that they rephrase or break up the question before you submit an answer.
If you don't know the answer, leave the question for someone else.
If you are unsure of your solution, post it as a comment rather than an answer. Members can accept comments as solutions and award points for them.
You are only responsible for providing one reasonable answer.
You may review information about a member, including their grading history, by clicking on their member name.
If you're having a problem with a Member, you can refer it to us.
</quote>

I would judge that at the very least that 3 minutes after the question was posted is "early in the collaboration process".

Anthony
0
 
LVL 1

Author Comment

by:xorcrack
ID: 7013098
thanks for the help
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 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