Broken links when starting viewer from batch file

  • Thread starter Thread starter Rene
  • Start date Start date
R

Rene

Hi experts!

I know this has probably been discussed a zillion times, but I can't
get it to work.

Here's the problem:
I'm creating a PPT that is viewed with the PPT-viewer and is started
from a batch file. Everything (!) is included in the same directory...
just to be sure. Now I want to link a pdf file from my ppt. YES! I am
using relative path names... in other words the link is mearly
"filename.pdf"

Everything works great when I start the viewer and open the PPT (or
PPS). However I start the viewer from a batch file, the links are
broken.

Can somebody help me, please?

Thanks!

Rene
 
3) MOST Importantly: I think I've gotten it to work!
The solution is pretty simple. I had all my PPT and PDF files in the
same directory as the ppview32.exe (see batch file).
If I move these files to a subdirectory and start the bloody viewer
with:
ppview32.exe "subdirectory/test.ppt"
it works!

VERY good work indeed. Thanks!

It's possible, then, that if the viewer is pointed at a PPT in the same
directory as itself, it doesn't change the current directory, which leaves
it pointed at ???

Whereas if you force it to open a PPT in a different directory, it sets the
current directory to match.
 
Back
Top