@echo off :: rename file in .htaccess in windows :: (cuz before windows 8 or 10, microsoft was a dick that don't allowed filename starting with a dot) if [%1]==[] goto noarg ren %1 .htaccess exit :noarg echo rename any input file into .htaccess echo Usage: htaccess.bat "truc.txt" pause exit