I wrote a program that will copy a file named a.exe to C:/Windows/ , and then pack it into exe using PyInstaller and rename the exe file to a.exe file. When I run the exe file, it IOError [Errno 13] Permisson denied: 'C:/Windows/a.exe' , but the a.exe file a.exe copied to the C:/Windows directory . Then I launched it as an Administrator, it happened again ... First I copy the file with shututil.copy , then I wrote the function myself (open a.exe, create a.exe under C: / Windows, read the contents of a.exe and write to C: /Windows/a.exe, close everything), but that doesnβt help ... Any ideas?
wong2 source share