Autorun CD Problem

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
 
N

Newbie Coder

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
 
G

Glenn Richardson

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
 
J

Jim Dell

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
 
G

Glenn Richardson

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Autorun CD - Windows XP 4
AutoRun CD 2
Autorun a CD 4
Autorun.inf 4
autorun not working 1
CD/ DVD ROM not reading discs 6
autorun doc 1
Autorun CD menu 4

Top