Ct Doc Commissary Electronics List - LifeStyle

I want to convert all the .doc files from a particular folder to .docx file. I tried using the following code, import subprocess import os for filename in os.listdir(os.getcwd()): if filename. How to list only .doc or .xls files with the Windows dir command in the cmd window?

Asked 9 years, 11 months ago Modified 6 years ago Viewed 10k times How to list only .doc or .xls files with the Windows dir command in the ...