creating a .bat file using python : I am trying to make a program that creates .bat files using python script and runs them in the same program, I have figured out how to run .bat files but I am stuck on how to change the file type of created files (using python). Currently python creates .txt files but i wish to create a .bat file. Please help. 