Refined .Bat creation