befidled
asked on
Launching a PDF from a Flash movie
I'm developing a CD that autostarts using an AUTORUN.INF file to launch the Flash executable. It also needs to use the Reader installed on the CD to launch a PDF file from the CD.
Right now only the Flash movie is launching and when it completes nothing else happens. I need to have it at the very least launch the Start.pdf file and preferably launch the Start.pdf file with the version of Adobe Reader that is on the disk.
Any ideas?
The last frame of the Flash movie reads as follows:
fscommand("exec", "Start.pdf");
fscommand("quit");
The AUTORUN.INF file reads as follows:
; autorun.inf generated by CDEveryWhere 1.2.3, Build 12
[AutoRun]
open=medline.exe
open=InstallReader\PC\Acro bat\Reader \AcroRd32. exe Start.pdf
Right now only the Flash movie is launching and when it completes nothing else happens. I need to have it at the very least launch the Start.pdf file and preferably launch the Start.pdf file with the version of Adobe Reader that is on the disk.
Any ideas?
The last frame of the Flash movie reads as follows:
fscommand("exec", "Start.pdf");
fscommand("quit");
The AUTORUN.INF file reads as follows:
; autorun.inf generated by CDEveryWhere 1.2.3, Build 12
[AutoRun]
open=medline.exe
open=InstallReader\PC\Acro
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
befidled
I think possible,
but still you need to put inside a "fscommand" subfolder
Vicker
I think possible,
but still you need to put inside a "fscommand" subfolder
Vicker
Hi,
what if you use a bat file, and include the following in your autorun.inf
open=run.bat
then in your run.bat, something to this effect
if exist d:\Start.pdf start /max /w d:\Start.pdf
if exist e:\Start.pdf start /max /w e:\Start.pdf
if exist f:\Start.pdf start /max /w f:\Start.pdf
if exist g:\Start.pdf start /max /w g:\Start.pdf
this checks possible CD-drives on the user end.
We usually use this code for autorunning html pages, so should do the trick with pdf me thinks.
blu.
what if you use a bat file, and include the following in your autorun.inf
open=run.bat
then in your run.bat, something to this effect
if exist d:\Start.pdf start /max /w d:\Start.pdf
if exist e:\Start.pdf start /max /w e:\Start.pdf
if exist f:\Start.pdf start /max /w f:\Start.pdf
if exist g:\Start.pdf start /max /w g:\Start.pdf
this checks possible CD-drives on the user end.
We usually use this code for autorunning html pages, so should do the trick with pdf me thinks.
blu.
ASKER