executables called from Internet Explorer start from wrong locatio

07-10-2005, 12:45 AM
Hi all,

Got a bit of a brain teaser for ya...

- I've got this CD with an html document on it. In this document is straight
forward html: a clickable map.

- Depending on where you click, a batch file is called. Eg "01.bat", which
resides in the same (root) folder as the map.html file. So far so good. This
works correctly

- Explorer gives you the option to download the batch file, or start it. I
choose to start it.

- The batch file contains following command line: .\IrfanView\i_view32.exe
..\01.Karfas /one /fs /filepattern="*.JPG"
Actually, it starts a slideshow of images. On my XP PC it starts correctly

And now the strange part...

- I take this CD to another computer, and theslideshow doesn't come.

- I put a "pause" command in the batch file, so I can see what goes wrong in
the command box (without "pause" the box closes too fast to read the error).

- Apparently, this PC subsitutes the "." (present directory) in front of
"/Irfanview" with the full patch for the desktop folder of the user I'm
logged on with. So now the command he's trying to start reads: c:\Documents
and Settings\my_user\Desktop\IrfanView\i_view32.exe .\01.Karfas /one /fs

- Of course he cannot find any Irfanview stuff on my desktop...

How do I get rid of this? I want the batch file to start from the CD root
dir, not from elsewhere.

Anyone got an idea? I don't even know where to begin looking...

Thanks in advance,

executables called from Internet Explorer start from wrong locatio