Autorun CD Problem

  • Thread starter Thread starter Glenn Richardson
  • Start date Start date
G

Glenn Richardson

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
 
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
 
But all I want to do is change the file path so that the links in the
explorer page (index.html) opens up a file that is on the CD. I don't
know the first thing about Microsoft Visual Studio which is what the
link above was pointing me towards.

Any ideas anybody?!!

Cheers
Glenn
 
Glenn said:
But all I want to do is change the file path so that the links in the
explorer page (index.html) opens up a file that is on the CD. I don't
know the first thing about Microsoft Visual Studio which is what the
link above was pointing me towards.

Any ideas anybody?!!

Cheers
Glenn
Glenn,
Open the Index.HTML that's on the CD. I bet it say something like a
Href file xxx. Take take the file and drive info out.

Jim
 
I've had a look at the source code of the index.html file and there's
nothing in there to do with "Href file xxx"

Any other ideas people?
 
Back
Top