Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win XP File Question

Status
Not open for further replies.

FLASHfreak1021

Programmer
Dec 11, 2003
90
US
Hey Everyone!
When you double click on a file, how does Windows know how to open the program that edits it, and how does it pass parameters to that program? I am in the process of making a text editing program, and wonding how to do this.
Thanks in Advance,
FLASHfreak:)
 
Windows associates the extension of a file type with a program. As yet I have not figured out how to make my own apps set this, how ever it can be done mannually.

Open my computer, choose tools, then choose folder options

select the File Types tab, and you can set extensions and associated progrmas here.


Becca

Somtimes, the easy answer is the hardest to find. :)

Still under construction ...
 
A double-click is a shortcut to the default context menu selection for the file type and its association. The defaultaction for a file is defined under Folder Options, File Types, and the respective file extension.

To create or customize this action, see:
 
You can look up "associate a file name extension with a file type" and "To modify an existing file type" in the Help and Support program.

323526 - HOW TO: Use the ASSOC Command to Display and Modify File Name Extension Associations in Windows 2000

184082 - How to Use the Assoc Command to Change File Associations
 
I Just found something interesting also...
If you goto "Run" in the start menu, then type in "regedit", the system registry comes up. Open up the "HKEY_CLASSES_ROOT" folder, and there you have it, the file extensions, and there commands and stuff. Its pretty interesting!
Flashfreak :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top