Computer Hope

Other => Software => FAQ solutions database => Windows => Topic started by: Dilbert on April 07, 2006, 02:22:01 PM

Title: Other Extensions with Notepad
Post by: Dilbert on April 07, 2006, 02:22:01 PM
Question
Is there a way to save a file other than a .txt file in Notepad?

Answer
Yes. You can make any file you want. This is useful for creating things like JavaScripts, batch files, and even programs (they still must be compiled, however). Notepad will try to append a .txt extension on your file. To override this:

1. Go to File, and Save As...
You should see something like this:

(http://img305.imageshack.us/img305/925/one2bn.png)

2. Note where it says "Save as Type". Select this drop-down menu, and select "All files(*.*)". Save where you wish to save, but remember to append the correct extension. Notepad doesn't know; you must specify this yourself. Javascripts are .js, C++ files are .cpp, batch is .bat,  et cetera.

3. Save the file if you have not already done so.

Remember that you can open these files again with Notepad or another program later if you want to.