Avatar of befidled
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\Acrobat\Reader\AcroRd32.exe Start.pdf
Adobe Flash

Avatar of undefined
Last Comment
blue-genie

8/22/2022 - Mon
SOLUTION
Vicker Leung

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
befidled

ASKER
Is there a way to force it to launch the version of Reader that is on the CD like in my AUTORUN.INF file?
ASKER CERTIFIED SOLUTION
Buffon

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Vicker Leung

befidled

I think possible,
but still you need to put inside a "fscommand" subfolder

Vicker
blue-genie

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.

Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes