title: Check if a Python script is already running in Windows
body: <p>What is the best/easiest why to check if a specific Python script already running in Windows?</p>
  
  <p>I have a script that goes over all files in a folder and copies them to another folder (sort to Movie or TV Shows folder).
  I want to make sure when the script starts that there isn't another process (of the same script) that is already running, so I wouldn't have issues with 2 scripts that are trying to move the same files.</p>
  
  <p>I have tried to create a file in the start of the script and deleting it when the script finishes, but I got into problems when the script crashes and/or throws an error. </p>
  
  <p>I know that I can use <a href="http://pythonhosted.org/psutil/" rel="nofollow noreferrer">psutil</a>, but then I will get the process name (python.exe) and I'm looking for a why to distinguish if the Python process is running my script or another program.</p>