I was trying to copy file from my desktop to System32 dir. it give me the following error.
PermissionError: [Errno 13] Permission denied:'C:/Windows/System32/abc.exe'
here is my code
src = pth + "\\" +s_name
dist = "C:/Windows/System32/"
shutil.copy(src , dist)
src = pth + "\\" +s_name- have a look at how to properly handle paths in Python, e.g. with the pathlib module.