Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Browse CD link.. 1

Status
Not open for further replies.

PunterHunter

Programmer
May 20, 2004
10
GB
Hi,

I want to create a training CD which has word and powerpoint presentations on. I've created a browser interface using FP but now want to creat a button link to browse the CD - can't figure it out - is it possible? and if so what or where will I find the html/ java script code?

Thanks..
 
I'm jusy using html to create the interface, although the pages are structured like a web page all I want to do is open a window that then gives a file manager type view to the contents of the CD which will be a directory tree structure with folders and PowerPoint presentations and word and PDF files in the folders..

Does that help?
 
So the website is on the CD? I mean - everything is on the CD & not on the web (internet) or on a different path?

If everything is on the CD - you can create a page with all the links that they can click to view the presentation.

__________________________
Corey

 
Yes.. sorry. Everything will be on the CD and run from the CD.

I'm just stuck - can't figure out how to create the html code to open a new window which shows the contents of the CD.

 
I think what you are wanting to do is insert the CD & then have a page come up to show the contents?

If so:
Here are some other suggestions as well:


First copy the "start.exe" file from your c:\windows\command directory to your CD-ROM. then use
Code:
[autorun]
open=start.exe index.html
One disadvantage of this method is that it will display a transient DOS window before the default browser fires up.

Try this in an autorun.inf file:
Code:
[autorun] 
OPEN=Start \README.htm 
ICON=SC.ICO
If that one does not work, you can try this one:
You will need to create two files. An Autorun file and and a batch file. Autorun files will only open up executables. Since an html document is not an executable you need the batch file to start the web browser.
This is what I usually use:
This is the autorun file (named autorun.inf):
Code:
[autorun] 
OPEN=start.bat 
ICON=fav.ico,0
(** fav.ico is just the name of the icon I have also saved on the CD.)

This is what I have for the .bat file (named start.bat):
Code:
start index.html 
exit
Otherwise - maybe something else?

__________________________
Corey

 
Thanks for this but it's not the initial start-up, I've done an auto.inf file etc.. what I want is to put a button on the home page (for want of a better word) that opens file manager I guess, showing the contents of the CD and allowing the user to open word files or PowerPoing presentations or PDF's. I can write a script that will open a new window from the button with the 'OnClick' commend etc.. but I'm not that expert with coding language and wondered if it were possible to use the OnClick to open a window showing the contents of the CD or thinking about it open eindows explorer directly..

Do you know if this is possible?
 
Thanks for trying - I'll keep plugging away.. If I figure it out I'll post it :)

Cheer's
 
like this for a new window
<p><a HREF="file:///c:/dirname" target="_blank">Browse Dir</a></p>

for same window
<p><a HREF="file:///c:/odbs">Browse Dir</a></p>




Aaron Taylor
John Mutch Electronics
 
the only problem with this is that if the cd is put into other drives that might be drive e on 1 pc and drive h on another it wont work.

you need tome code to determine the host path.
im looking for it for you.

Aaron Taylor
John Mutch Electronics
 
EXCELLENT!!!

Thank you all very much for your input - the last script worked a treat and the CD is almmost completed..

Thanks Aaron :)

Keep the faith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top