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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Windows Explorer from the home page?

Status
Not open for further replies.

PunterHunter

Programmer
May 20, 2004
10
GB
Hi,

I want to create a training CD which has Word, PowerPoint presentations and PDF files 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?

I'm using html to create the interface, although the pages are structured like a web page, and everything will be on the CD and run from the CD.

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 PowerPoint 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 Windows Explorer directly, or just a window which will then allow the user to view the contents of the CD in a directory tree kind of structure with folders and PowerPoint presentations and word and PDF files in the folders..



Thanks..
 
As far as i know, javascript cannot call an application(e.g. window explorer). Perhaps Flash is a considerable candidate for your task.
 
As 13iso noted javascript in itself cannot open files.

However, there may be some other things in conjunctions with Javascript that can leverage what it sounds like you are wanting to do.

Some approaches would include:
1) Code as <a> tags... Ex.
<a href=/project/rqrmnts/BRDI0006.DOC>BRDI0006 - Address Changes Locations</a>

Assumes the user has required program or viewer

2) <a href="javascript:newWindow('/systems/tools/rce/rcemvrqt.doc','popup',640,400);">Move Reqst</a>

This example uses a Javascript function to popup a window and then load the document into Word or viewer.

Hope this helps..

DougCranston
 
Hi Guys,

Thanks for these tips - but not sure if I've confused things.. I don't want to open individual files - coz using IE5/6 as a browser will allow you to open word docs etc by using a HREF tag. What I want to do is put a button on the home page which when clicked opens file manager or windows explorer which allows the user then to browse the CD.. I'm not sure if it can be done but thought someone might know whether or not its possible..

Thanks..
 
Check out this thread, it may have what you're looking for:
Thread333-475872

There's always a better way. The fun is trying to find it!
 
Hi Guy's..

I've found the answer curteousy of JSS Templates and it's extremely simple - if you know how of course!

<a href="." target="_blank"><img border="0" src="your_name.gif" width="xx" height="xx"></a>

The "." after the href tag links the window to the current directory. The target="_blank" opens a new window. Add the name of your button picture and dimensions and Bobs your uncle..

Keep the faith!

 
Thank you PunterHunter, i've learned a new thing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top