Re: Shortcuts on a CD

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance





"WTC" wrote:

> "Mark Kyprianou" <MarkKyprianou@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:3318C1FC-C265-413D-9379-92B87E3D2922@xxxxxxxxxxxxxxxx
> > I'm trying to create a series of shortcuts to items for a MultiMedia CD
> > that
> > I'm creating. I try to make it easy for people to use so I create a
> > directory for shortcuts to items on the CD that I want them to access.
> > Then
> > have the autoplay open up that directory so they have access to everything
> > on
> > the CD.
> >
> > How do I create a shortcut that will work on whatever drive that they have
> > assigned on their system. FOr example, my CD is drive M:\ when I put the
> > CD
> > into a system with a different drive letter assignment, the shortcut does
> > not
> > work.
> >
> > Is there a way to use the label of the CD? Something else?
> >
> > thanx. mark
>
>
> Here is a start, you need a cmd or a bat file that will run as the autorun
> file that has the *one& lines in it. And you need a *blank* file called
> CD.txt on the cd.
>
> ------
>
> FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST
> %%i:\CD.txt SET CDROM=%%i:
>
> -----
>
> NOTE: the above is all one line.
>
> Then in your path for the shortcuts use %CDROM%

I created the bat file above ok, but I cannot put %CDROM% in the shortcut.
I always get errors, like:
The name '%CDROM%\test.txt' specified in the Target box is not valid. Make
sure the path and file name are correct. How ccan I put the variable name in
the shortcut window?

Also, can I put multiple commands in the autorun file?
>
> --
> William
>
>
>
>
.



Relevant Pages

  • Re: Accepting input to BAT file by dragging.
    ... What I found, was if a shortcut to the bat file was on the desktop, it didn't work. ... | No window, blink or anything ... ... Also tried the double quotes and also no quotes. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: SpyderTV /support switch...am I being dense?
    ... I have the SpyderTV ... and when I add the /support switch to the ... the ability to modify a .exe start from a shortcut with added parameters ... If that works you could try is to start the program via a .bat file. ...
    (alt.tv.tech.hdtv)
  • Re: Running DOS and Batch Programs on XP
    ... You created the shortcut using command.com so it is using that "environment". ... So perhaps going back to opening a command prompt and then running the bat file will have to suffice. ... David wrote: ... R-click that, pick Properties, then the Program tab. ...
    (microsoft.public.windowsxp.general)
  • Re: Shortcuts on a CD
    ... >>> How do I create a shortcut that will work on whatever drive that they ... > I created the bat file above ok, but I cannot put %CDROM% in the shortcut. ... have the autorun file point to a bat file. ...
    (microsoft.public.windowsxp.general)
  • Re: Running DOS and Batch Programs on XP
    ... David wrote: ... Unfortunately, when I click the shortcut, the window opens with: ... instead of executing the Webster2 bat file. ... R-click that, pick Properties, then the Program tab. ...
    (microsoft.public.windowsxp.general)