Last active
December 27, 2015 08:59
-
-
Save whoo24/7300903 to your computer and use it in GitHub Desktop.
rename files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import glob | |
files = glob.glob("C:\\path\\*.exe") | |
for file in files: | |
os.rename(file, file.replace(".exe", ".com")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment