PC Review


Reply
Thread Tools Rate Thread

Autorun CD Problem

 
 
Glenn Richardson
Guest
Posts: n/a
 
      18th Nov 2007
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
 
Reply With Quote
 
 
 
 
Newbie Coder
Guest
Posts: n/a
 
      18th Nov 2007
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


 
Reply With Quote
 
Glenn Richardson
Guest
Posts: n/a
 
      18th Nov 2007
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
 
Reply With Quote
 
Jim Dell
Guest
Posts: n/a
 
      19th Nov 2007
Glenn Richardson wrote:
> 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
 
Reply With Quote
 
Glenn Richardson
Guest
Posts: n/a
 
      25th Nov 2007
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?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CD autorun problem PatH Windows Vista Installation 3 31st Dec 2008 01:45 PM
A problem with autorun Artur~ Windows Vista Performance 1 24th Apr 2008 03:34 AM
autorun from SD card - how to determine the original autorun directory Buthrakaur Microsoft Dot NET Compact Framework 1 23rd Jul 2007 03:35 PM
Autorun problem =?Utf-8?B?YnJ1Y2VzdGVy?= Windows XP Help 2 28th Nov 2004 01:07 AM
CD Autorun problem Beginner Windows XP Help 1 6th Dec 2003 01:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 AM.