Advertisement
Guest User

Untitled

a guest
Jan 17th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import os;
  2. import sys;
  3. filePathSrc="C:/folder/"
  4. for root, dirs, files in os.walk(filePathSrc):
  5.     for fn in files:
  6.         if fn[-4:] == '.txt' or fn[-5:] == '.html':
  7.             notepad.open(root + "\\" + fn)
  8.             notepad.runMenuCommand("Encoding", "Convert to UTF-8")
  9.             notepad.save()
  10.             notepad.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement