Results 1 to 2 of 2

Thread: programs - open with

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    programs - open with

    When you open a program using the [open with>choose program] from the right click menu, the open with dialog appears, with a list of programs installed. Can i use this program list in my program.

    I have a form which has 8 cmd buttons, each button loads a program from the path saved in the reg when i click it. The path of the program can be change on another form along with the caption of the button.

    At the moment i use the browse dialog to find the program i want, but i would like to make it easier by using the open with dialog or make my own dialog.

    How can i get this list of installed programs. Is it in the registry or something.
    Attached Images Attached Images  
    Last edited by chris1990; Feb 3rd, 2008 at 10:30 AM.
    If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.

    If you fail, try and try again, its the only way to success.

  2. #2
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: programs - open with

    You can use:

    Code:
    rundll32.exe shell32.dll,OpenAs_RunDLL [drive:\path\filename]
    or just

    Code:
    rundll32.exe shell32.dll,OpenAs_RunDLL

Posting Permissions

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



Click Here to Expand Forum to Full Width