windowsnotepad

Extension-less File in Windows with Notepad


How to create a file with no file extension using Windows Notepad?

When I tried to create a file with Notepad in Windows, then the file automatically saved as a text file (*.txt).

I then tried setting the "Save as type" field to "All files (*.*)", but no success.

I even tried on the command prompt as well

C:\My Documents> notepad myheader

But then Notepad creates a file called C:\My Documents\myheader.txt.


Solution

  • My extrasensory perception (ESP) is telling me that you are trying to create it using Windows Notepad.

    That is (I.e.):

    C:\My Documents> notepad myheader
    

    And Windows Notepad creates a file called "myheader.txt".

    You can do

    C:\My Documents> notepad myheader.
    

    (Note the dot after "myheader".)

    This creates a file without a file extension on Windows and with Windows Notepad.