I'm having problem TFS when viewing .cs files and need to delete the file association with .cs in Windows 7. At the moment I go to Control Panel - Default Program trying to do this but it seems to have no way to delete other than change the current association. So, how can I do it? Please help!

link|improve this question

67% accept rate
feedback

1 Answer

Open an elevated command prompt with admistrator privileges. Remove the file extension association from its assigned file type with the following command, followed by ENTER keystroke assoc .ext=

Replace .ext with the extension name that needs to be unassociated. For example, to disassociate WinRAR .rar extension, simply type: assoc .rar =

Note that after disassociation of file extension from file type, the default program for the file type no longer been shown in the “Open With” list for the file extension.

Then, clear and delete the default program used for the open command when launching files of this type by typing the following command, and press ENTER: ftype FileType=

Replace FileType with the actual name for the file type associated to the file extension to be removed from the system. For example, for WinRAR, type ftype WinRAR=.

Note that if you don’t know what’s the correct “FileType” to type, simply type assoc (associated file type will be shown after the extension) or ftype to get a listing of all file types defined in the system. .

link|improve this answer
Would you suggest what command I should use with .cs (C#) files for the two command? – Nam G. VU Jul 4 '10 at 17:12
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.