PC Review


Reply
Thread Tools Rate Thread

CD Autoplay - Is it possible to get it to run a program of my choice?

 
 
Palindrome
Guest
Posts: n/a
 
      4th Nov 2008
Hi,
As per the subject line - I would like to add my own "autoplay" so that,
whenever a CD is inserted, a program of my choice would run - automatically.

(The program that would run could be a batch file, or a Delphi .exe)

Can that be done and, if so, how?

--
Sue
 
Reply With Quote
 
 
 
 
Daave
Guest
Posts: n/a
 
      4th Nov 2008
Palindrome wrote:
> Hi,
> As per the subject line - I would like to add my own "autoplay" so
> that, whenever a CD is inserted, a program of my choice would run -
> automatically.
> (The program that would run could be a batch file, or a Delphi .exe)
>
> Can that be done and, if so, how?


Try Tweak UI:

http://www.microsoft.com/windowsxp/d...powertoys.mspx

or

http://windowsxp.mvps.org/tweakui.htm


 
Reply With Quote
 
Palindrome
Guest
Posts: n/a
 
      5th Nov 2008
Steve Yandl wrote:
> Sue,
>
> On the root folder of your CD, you need to place a text file named
> Autorun.inf. If you know how to write batch files, I'm going to assume you
> know how to create a text file with the extension inf rather than txt.


I can stop you there - they aren't my CDs. I just need to run my own
program whenever a CD is inserted. Any CD.

However, I've left your explanation below, as I am sure that it will be
of use to someone else - not to mention myself, should I need to produce
my own CDs.

>
> The first line of autorun.inf should be
> [AutoRun]
>
> If you want a special icon to show in Windows Explorer when you insert this
> CD, the next line should be:
> ICON =
> where the full path to the icon file follows the equal sign.
>
> Next, you should have a final line that is
> OPEN =
> where the path and file name of an executable you want run follows the equal
> sign.
>
> There is an important caveat here. The file association information
> contained in the registry won't be used when the "OPEN =" line gets read.
> This means your exe file would run just fine, but if you want to run the
> batch file, you should have the open line point to cmd.exe and then your
> batch file listed as an argument to cmd.exe. If the batch file or exe file
> you want run is also in the root folder of your CD, you don't need the full
> path but you will need full path statements for exe files you reference that
> are on your hard drive (this is where it can get even more tricky if you're
> distributing the CD to people who might have key files located in atypical
> folders on their hard drives).
>
> It isn't a big deal but I prefer that someone getting a CD from me not have
> to see the command (console) window flash briefly as cmd.exe is launched.
> To avoid that, I prefer to use a vbScript file rather than a batch file. If
> a vbScript file is used, you get it run using WScript.exe or CScript.exe
> instead of cmd.exe. If you're good with html, you might also opt to create
> an HTA file which makes available all sorts of tools to create an interface
> for your users.
>

Thank you for the time that you have spent on the above, it was very
kind and much appreciated.

--
Sue
 
Reply With Quote
 
ju.c
Guest
Posts: n/a
 
      5th Nov 2008
This is the best program for creating custom Autoplay Handlers:

Autoplay Repair 2.2.2 225 KB (Freeware)
http://www-stud.uni-essen.de/~sddaba...news.php?id=24


ju.c


"Palindrome" <(E-Mail Removed)> wrote in message news:86YPk.55705$(E-Mail Removed)...
> Hi,
> As per the subject line - I would like to add my own "autoplay" so that,
> whenever a CD is inserted, a program of my choice would run - automatically.
>
> (The program that would run could be a batch file, or a Delphi .exe)
>
> Can that be done and, if so, how?
>
> --
> Sue

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add New Program to AutoPlay window PSRumbagh Windows XP General 2 6th Sep 2008 02:52 AM
Program not showing up in autoplay jimhub@gmail.com Windows Vista General Discussion 0 10th Mar 2007 05:27 AM
Autoplay Won't Remember My Choice! Orson Windows XP Help 3 1st Jul 2005 03:09 PM
Changing the Autoplay program. =?Utf-8?B?Tm9ybQ==?= Microsoft Windows 2000 0 17th Jan 2005 08:11 PM
Dos Program: PFS First Choice on XP SP2 Perry Ellsworth Windows XP Basics 2 6th Oct 2004 03:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:10 PM.