Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2002
    Posts
    8

    loading explorer folders with web component

    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

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    "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

  3. #3
    Join Date
    Aug 2002
    Posts
    8

    absolute path?

    is there an absolute path for My Computer?

  4. #4
    Join Date
    Jan 2000
    Posts
    2,002
    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.

  5. #5
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    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.

  6. #6
    Join Date
    Aug 2002
    Posts
    8

    hmmm

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts