Create .htaccess file in Vista

I enjoy using command line, especially for things that I cannot do using GUI. Today, I spent good 15 minutes trying to create .htaccess file in c:\xampp\htdocs directory on my Vista machine. I guess Vista expects a file name before the period and therefore kept saying ‘You must type a file name’. This DOS command did the trick:

C:\xampp\htdocs> type nul > .htaccess

Once the file was created, I was able to edit it in notepad :)

Leave a Reply