Auto Open a CD and run an Excel file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone tell me how I can write an Auto Run scrip for a CD that will open
the CD automatically and then open an excel file on the CD. The scrip would
also be on the CD, so when someone inserts the CD in the computer, it opens
itself. Thanks for any help someone can give.
 
hi,
not possible. to run vb script from excel you must have an
open excel file with the script in the open excel file.
with the script on the cd......it just wont run.
sorry.
 
Larry - never done this, but a somewhat broader search in Google groups
threw up these two threads - maybe there is something for you in them - good
luck!

James Cox

All messages from thread
Message 1 in thread
From: Lars Makiaho ([email protected])
Subject: Autostart a CD component


View this article only
Newsgroups: borland.public.delphi.thirdparty-tools
Date: 1999/09/04


I am searching for a component that can autostart a program on a CD when it
is inserted, does that exists somewhere?

LarsMessage 2 in thread
From: Pierre du Parte ([email protected])
Subject: Re: Autostart a CD component


View this article only
Newsgroups: borland.public.delphi.thirdparty-tools
Date: 1999/09/04


You don't need a component. To autorun the CD create a text file called
autorun.inf - this file is like a batch file and it is placed in the root of
the CD.

A simple example for autorun.inf is

[autorun]
open=myprog.exe
icon=myprog.ico


where myprog.exe is the program to run when the CD is inserted and
myprog.ico is the icon attributed to the CD.

Easy, what?

Pierre






Lars Makiaho said:
I am searching for a component that can autostart a program on a CD when it
is inserted, does that exists somewhere?

Lars

Message 3 in thread
From: Lars Makiaho ([email protected])
Subject: Re: Autostart a CD component


View this article only
Newsgroups: borland.public.delphi.thirdparty-tools
Date: 1999/09/04


Too easy!
Thanks!
Lars
Pierre du Parte said:
You don't need a component. To autorun the CD create a text file called
autorun.inf - this file is like a batch file and it is placed in the root of
the CD.

A simple example for autorun.inf is

[autorun]
open=myprog.exe
icon=myprog.ico


where myprog.exe is the program to run when the CD is inserted and
myprog.ico is the icon attributed to the CD.

Easy, what?

Pierre






Lars Makiaho said:
I am searching for a component that can autostart a program on a CD when it
is inserted, does that exists somewhere?

Lars
and:



From: Ted McCormick ([email protected])
Subject: Autostart a program on a cd


View this article only
Newsgroups: macromedia.director.lingo
Date: 2001-08-08 13:49:04 PST

Can somebody tell me how you get a projector to run automatically when a
user inserts the cd. (Windows).

Thanks in advance eh.

Ted McCormick
(e-mail address removed) 2 in thread
From: David Craddock ([email protected])
Subject: Re: Autostart a program on a cd


View this article only
Newsgroups: macromedia.director.lingo
Date: 2001-08-08 15:19:02 PST


create a file using notepad (or any text editor) named autorun.inf

put the following in the file

[autorun]
open=YourProjectorName.exe

save the file and place it at the root (not in a folder) level of your CD
rom along with the projector when you burn the CD.

Other options exist but this is the minimum to auto run. Director
Projectors don't always start real quick so be patient when testing. Note:
The Auto Insert Notification option must be enabled for the CD ROM on each
machine (and it usually is by default).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top