Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have to upload .C file for a contest! But once i have opened .c file with notepad and saved..After that notepad is the default opener of C files in my desktop. The problem is if i upload that file, the website cant recognize the kind of file as C file and producing illegal format error. How to restore this C file association with notepad and make it ask everytime "how to open"? I'm using windows 8. Thanks !!!

share|improve this question

migrated from stackoverflow.com Aug 13 '13 at 18:29

This question came from our site for professional and enthusiast programmers.

1  
Just google file association: windows 8... –  Magn3s1um Aug 13 '13 at 18:27
    
i cant find.. tats y askd here!! please help me with this –  Narasimhan V s Aug 13 '13 at 18:28
    
Right click your file -> Properties -> Opens with. –  GraphicsMuncher Aug 13 '13 at 18:29
    
Unless you are saving using a different encoding then everyone else, notepad, shouldn't be modifying the file in such a way somebody else can't open it. Sounds like you are doing something wrong. Your question is not the actual question you should be asking, since solving it, won't result in a file somebody else can open ( considering they are unable to open the file on their hardware ). –  Ramhound Aug 13 '13 at 18:35
    
File association on your computer shouldn't have anything to do with online submitting(unless you saved file in notepad with wrong encoding). I belive you have some other problem than that. –  Luke Aug 13 '13 at 19:11

2 Answers 2

Control Panel -> Default Programs -> Set Associations. It lists all the extensions and their associated programs. It lets you change the entries, but there doesn't seem to be a way to delete an entry.

share|improve this answer

Right Click on the file -> Open With... -> (expand with "more options if needed) click a program you'd like to use, or if it's not on the list, scroll down to the bottom and press "Find an app on this PC" and then browse for the app you want to use.

By default, "Use this app for all .c files" is ticked, meaning that app will keep opening .c files(I suppose you left that ticked when you opened it with notepad).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.