CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: file extension

  1. #1
    Join Date
    Jun 2001
    Location
    Michigan
    Posts
    2,222

    file extension

    Just wondering... where does Windows map the file extension type to an application when I click on that file?

    i.e. I have an .asp file and when I click on it, it opens FrontPage, how can I change that to open a different application?

    Rate this post if it helped.

  2. #2
    Join Date
    Sep 2001
    Location
    St.Peterburg, Russia
    Posts
    0

    Re: file extension

    For example, .txt

    Run "regedit.exe" and see the following keys.

    1. [HKEY_CLASSES_ROOT\.txt] = "txtfile"

    2. [HKEY_CLASSES_ROOT\txtfile\shell\open\command] = "%SystemRoot%\system32\NOTEPAD.EXE %1"




  3. #3
    Join Date
    Sep 2001
    Location
    New Delhi, India
    Posts
    5

    Re: file extension

    In the windows explorer you can go to View->Folder Options (or View->Options) in case of Windows NT/98/95 or Tools->Folder Options in case of Windows 2000 and click on File Types Tab there. It shows the various file types and the application names by which they 'open with' by default. you can choose 'edit' and then 'edit' again for the action 'open' to change the name/path of the executable which is used to open the program by default.

    Hope is Helps.


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

Featured