I am trying to use a pip feature in python called pyperclip, I am working through automate the boring stuff by Al Siegwart.

I am supposed to open a file editor and save the file as mclip.bat in the C:\Windows folder:

First it has you build it in MU and save as mclip.py then it has you create a batch file to run the program with the win-R run window

That file looks like this:

@py.exe C:\path_to_file\mclip.py %*

@pause

When I try to save this file to the C:\Windows folder I get the error you dont have permission to save in this location. Contact the administrator to obtain permission I am the sole user of the computer and the admin.

It also says, would you like to save this in Alex instead? and when I say no it doesn't save

After this when I try to run the program on Win-r by typing mclip the following message appears:

C:\Users\Alex\AppData\Local\Programs\Python\Python37\python.exe: can't open file 
C:\path_to_file\mclip.py': [Errno 2] No such file or directory
Press any key to continue . . .
0

There are 0 answers