How to create files like .htaccess on windows
So you want to create a .htaccess or any other .extension and you fire up the explorer and start doing it, and you get
Error: You must type a filename
How to create a file only with extension
- Fire a command line terminal and go to your destination folder (cd ...)
- Type in
echo > .htaccessand Press ENTER.
- Now goto the explorer and edit the just created new empty file and save it.
- Voila !
'touch' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\kampar>copy con .htaccess
Overwrite .htaccess? (Yes/No/All): y
1 file(s) copied.