title: How to fix FileNotFoundError: [WinError 2] The system cannot find the file specified
body: <p>I'm trying to rename multiple files from a folder so that every alphabet is removed but i get this error when I run it:</p>
  
  <blockquote>
    <p>FileNotFoundError: [WinError 2] The system cannot find the file
    specified: 'Amsterdam1971' -> '1971'</p>
  </blockquote>
  
  <pre><code>import os
  os.chdir(directory)
  for f in os.listdir():
      f_name, f_ext = os.path.splitext(f)
      os.rename(f_name,f_name.translate(str.maketrans("","","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")))
  </code></pre>