Skip to content

Instantly share code, notes, and snippets.

@Albirew
Created June 8, 2017 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Albirew/421a5b3d33945371a8ccc261abc2ea5f to your computer and use it in GitHub Desktop.
Save Albirew/421a5b3d33945371a8ccc261abc2ea5f to your computer and use it in GitHub Desktop.
rename file in .htaccess in widows (cuz microsoft is a dick that don't allow filename starting with a dot)
@echo off
if [%1]==[] goto noarg
ren %1 .htaccess
exit
:noarg
echo rename input file into .htaccess
echo Usage: htaccess.bat "truc.txt"
pause
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment