Sep-19-2021, 06:48 PM
You should try yourself as this is a relative easy task,we do not like a task posted without any effort,then is more job description.
That's said here a start(saving to log file you should try yourself), these days pathlib is a more modern way to do it.
That's said here a start(saving to log file you should try yourself), these days pathlib is a more modern way to do it.
import pathlib win_dir = r'C:\Windows\System32' for file in pathlib.Path(win_dir).glob('*.exe'): if file.is_file(): print(file)