You know there's a way around having to do those things every time you use CreateFile, right? It's a neat thing they invented many moons ago, starts with an F and ends with "nction".
Secondly, if you use 20 version control systems, you're doing it horribly, horribly wrong.