Results 1 to 2 of 2

Thread: Register File type

  1. #1

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Register File type

    Hi, does anyone know how to register a new file type to explorer? So that, we double click on the file, it will automatic load the define application?

    regards,

  2. #2
    Zaei
    Guest
    Create a registry key under HKEY_CLASSES_ROOT, with your file extension. You then have to create another key under that one, called shell, then under shall, one called open, then, under open, cmd, and the default value should be your application's path, followed by %1:
    Code:
    HKEY_CLASSES_ROOT
      myext
        shell
          open
            cmd
               (Default) = "c:\myapp.exe" %1
    There are a few other settings that you need to add in there as well, but you should be able to figure them out with a little bit of registry diving =).

    Z.

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