Solved

autoloading from a cd

Posted on 2002-05-15
5
139 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

808 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