Glenn,
http://support.microsoft.com/kb/818804
Also see the two references at the bottom of the document
I have created a ShellExecute function in unmanaged C++ which runs the string passed to it
like everyone else uses. You are passing a path to Explorer to the autorun so that is why
it is using the computer & not the CD/DVD ROM
--
Newbie Coder
(It's just a name)
"Glenn Richardson" <(E-Mail Removed)> wrote in message
news:e9f59ca8-d943-42cb-9c6e-(E-Mail Removed)...
> Hi,
>
> I have a CD with an autorun.inf file that contained the following:
>
> [autorun]
> open=c:\windows\explorer.exe d:\index.html
> icon=d:\myicon.ico
>
> This was great as long as the disk I inserted it into was the d:
>
> I have since found that the following works if I put it into any drive
> letter:
>
> [autorun]
> ShellExecute=index.html
> icon=index.html
>
> Great so far! So why am I posting?!!
>
> The webpage that opens (index.html) shows some buttons on the page
> that once clicked opens a file. At present when you click on the
> button it tries to find:
>
> FILE:///D:\CD\DocumentName.rtf
>
> Which is fine, yet again, if the file is located on the D:
>
> How can I change this so that it will access the file within the 'CD'
> folder no matter what the drive letter is?
>
> Any help would be greatly appreciated.
>
> Best regards
> Glenn