?
Solved

How to make your own CD interface?

Posted on 2003-10-27
8
Medium Priority
?
159 Views
Last Modified: 2010-05-01
Hi, i want to make a CD interface. Then you insert CD to the CD-ROM aurotun.inf open file (cd_interface.exe). And there must be a form with names of programs, and then you click on one of the names (f:/Visual basic/setup.exe) it must open this file. What must i write (path to file)? open.file ("f:/Visual basic/setup.exe") or file.open ("f:/../..") or something like this? :) I think this is very simple question and answer will be very simple too.:) Thanks.
0
Comment
Question by:zombis
[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
8 Comments
 
LVL 39

Expert Comment

by:appari
ID: 9630889
better take relative path, relative to cd_interface.exe.
first get the path of cd_interface.exe by using app.path, (normally it will be root directory on CD) from there build your path to other exes.
0
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9631509
you can execute program with shell ("f:/Visual basic/setup.exe", vbnormalfocus)

thanks & cheers
0
 
LVL 3

Expert Comment

by:pg_india
ID: 9631650
better u can use the dir,drive and file list boxes provided by VB

also if f:/ is not the default CD drive,,it can happen than there are more than 4/5 partition on the system and drive f is some hard disk and cd drive is g: or h:
with drive listbox u don't have any such problem....

just a suggestion
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 5

Expert Comment

by:fantasy1001
ID: 9631679
I agreed with pg_india, you can also try to search for the first cdrom letter and then append to your program with example here: http://www.codeguru.com/vb/articles/2009.shtml

Thanks & Cheers
0
 
LVL 1

Expert Comment

by:Lycaon
ID: 9898947
If you're interested in making your program a menu for the CD which automatically runs when the CD is inserted (as long as they have auto-insert notification turned on), you'd need to put the following text in autorun.inf in the ROOT of the CD.

[autorun]
open=YourProgram.exe
icon=YourProgram.exe,0

The ,0 speficies that the default icon of the program be used.

Then, you either need to make a list of all programs you want to display that're on the CD, or else search through all folders on the CD, and if the folder contains an EXE and a special marker file (say, ProgramName.lst) then the program will show up in the menu.  This sounds odd, but it enables you to create a standard menu program and drop it on any CD and immediately get a menu, without having to do anything more than add a marker file in a folder.

This is also a nice idea because you may have a folder full of exe's, but there is only one exe in that folder that you want on the menu.  In that case, simply create a file named WhatEverProgram.lst, and your CD menu program will be able to tell that you want that program displayed.

James
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 10651926
PAQed - no points refunded (of 50)

CetusMOD
Community Support Moderator
0

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.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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 …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

764 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