Announcement

Collapse
No announcement yet.

Right click launch in Windows explorer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Right click launch in Windows explorer

    Hi All,
    Can anyone tell us how easy, difficult, or otherwise it is to add the ability to launch an app by right-clicking on a data file in Explorer and getting the option to "open with"?

    For example, if I wrote/compiled a simple text editor called "Myeditor.exe" and right-clicked on any file with a .INI extension, getting Explorer to have in it's drop down menu the option to "Edit with Myeditor". This would preferably work only with a certain file type (.INI in this example) and not show for other file types.

    Simple, majorly difficult, or somewhere in between?

    Thanks in advance to anyone who can help with this one.

    Cheers,
    Chris

  • #2
    explorer.tools.folderoptions.file types ??

    Comment


    • #3
      Programatically:

      http://www.powerbasic.com/support/pb...d.php?p=166867
      Rgds, Dave

      Comment


      • #4
        Originally posted by Dave Biggs View Post
        That looks dangerously clever!

        Comment


        • #5
          Most of Semen's stuff is like that
          Rgds, Dave

          Comment


          • #6
            That looks dangerously clever!
            Not so sure about "DANGEROUS", but it looks to me to be the ole "Register your Filetype" kinda situation

            and coming from Semen it is probly most if not dead on the mark :wavey:
            Engineer's Motto: If it aint broke take it apart and fix it

            "If at 1st you don't succeed... call it version 1.0"

            "Half of Programming is coding"....."The other 90% is DEBUGGING"

            "Document my code????" .... "WHYYY??? do you think they call it CODE? "

            Comment


            • #7
              Hi,
              I didn't want to register the file extension as the default type (mainly to keep things "idiot proof") for the application.

              As an example, a file with a .txt extension by default opens in Notepad.
              Right clicking gives a few more options...

              - Convert to Adobe PDF
              - Add to Zip
              Open with
              - Notepad
              - Wordpad
              - MS Word
              - MS Excel

              The first 2 would have been added when Acrobat and Winzip respectively were installed - what I wanted to know was how this was done.
              By choosing "open with" it will sometimes add the app the the "Open with" list, but I wanted it - if possible - to be above that.

              Regards,
              Chris

              Comment


              • #8
                This code posted by Pierre Bellisle might be closer to what you are after..
                http://www.powerbasic.com/support/pb...ad.php?t=25037
                Rgds, Dave

                Comment

                Working...
                X