PDA

View Full Version : loading explorer folders with web component


skinny_2k
12-23-2003, 01:18 AM
i know that you can direct your web components to any explorer window, such as "c:\folder"

my question is this...

Is there a way to open certain explorer windows like "My Computer" from within a web component in AMS 5?

I know if you Open up Internet Explorer and type in "My Computer" it will open up your My computer in that IE window...

if you specify "My Computer" in the properties of your web component, it simply tells you that it cannot be displayed...

Any help on this matter would be greatly appreciated.. Im stumped and I really need to be able to accomplish this task..

Thank you in advance..

Scott

Corey
12-23-2003, 02:04 AM
"My Computer" isn't a built in Path for AMS so that won't work. For relative paths try working off one of the included paths such as _SourceFolder, etc. or instead just stating an absolute path.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

skinny_2k
12-23-2003, 09:17 AM
is there an absolute path for My Computer?

Brett
12-23-2003, 09:34 AM
No, there is really no way to do that right now. My Computer is a shell namespace, not an actual folder. As such, there is no built-in path for it.

If you want the user to browse your CD-ROM, try just using the File.Open command to open a path and it will be opened in a new Windows Explorer window.

Lorne
12-23-2003, 09:34 AM
Try adding the "file://" prefix, like so:

file://My Computer

I'm not sure if that works, exactly, since my folder isn't named "My Computer" here. But if I substitute the proper name, it works.

Obviously, if you don't know what the user's "My Computer" is named, this won't work.

You might be able to use System.GetLANInfo to guess the name based on the user's system name, but that isn't going to work in all cases.

You might be better off taking an alternate approach.

skinny_2k
12-23-2003, 09:40 AM
well oddly enough, i think ive found a solution... not exactly the thing i was hoping for, since ill have to rearrange how im setting this all up... but if I create an html page with an iframe linking to a dummy page.... and use a particular piece of code ive used in the past... i can open My Computer in the iframe with dhtml command using the registry code for My Computer and direct the link to be opened in the Iframe...

this isnt exactly what I had in mind.. in fact its an additional click for the user, which i prefer to avoid.. as well as an additional LUMP of work on my side, heh.. but at least I know it can be done.. thx for the replies


Scott