From: qazxsw21000 on


"Sa6ry" wrote:

> you may consider converting your vbscript script into EXE !!! using this
> online converter
> http://www.vbs2exe.com/
>
> "Jerry Tovar" <JerryTovar(a)discussions.microsoft.com> wrote in message
> news:4CA98DFA-C35B-4F70-8DF3-14DBE7874165(a)microsoft.com...
> >I have created a CD-Rom with a file mywinscript.VBS that does stuff then
> > decides what setup.exe file to run off the CD.
> >
> > All the files reside on the CD-Rom root including an autorun.inf that
> > contains the following:
> > [autorun]
> > open = mywinscript.vbs
> > icon = myicon.ico
> >
> > After I burn the CD-Rom and place the CD into a CD drive, the Autorun.inf
> > does not run the .VBS. Nothing happens. If I right click the CD drive from
> > My
> > Computer and select Autplay, I get this error " d:\ is not a valid Win32
> > app."
> >
> > However, if I double click the .VBS on the CD-Rom from My Computer, the
> > .VBS
> > runs fine.
> >
> > Can I get a .VBS to autorun on a CD?
> >
> > If not what can you suggest I do?
> >
> > My goal is for the .VBS to check if the app is installed under program
> > files. If the app is installed, run the EXE of hard drive, if not
> > installed
> > run setup.exe from the CD-Rom. I have this code working but the problem is
> > that the .VBS does not autorun.
> >
> > Please help. Thanks,
> >
> > Jerry Tovar
> >
>
>
>

First, make an autorun for an autorun.bat file. Then create an autorun.bat
that says:
@echo off
start (name of vbs here).vbs
exit

I did that and put the 3 files on my flash drive. Now when I put my flash
drive in a PC, the CD tray opens and closes.