Thanks, I did a pip install of pyuac, however I get an error
D:\python>py FFdelete.py
File "D:\python\FFdelete.py", line 12
file_path = r'C:\Program Files (x86)\Microsoft\'
^
SyntaxError: unterminated string literal (detected at line 12)
and line 12 = file_path = r'C:\Program Files (x86)\Microsoft\'
I tried the above and using double quotes with the r inside the quotes as well.
I found I had to use \ so the path is
file_path = "C:\\Program Files (x86)\\Microsoft\\"
But then I get this error
PermissionError: [WinError 5] Access is denied: 'C:\\Program Files (x86)\\Microsoft\\'
D:\python>py FFdelete.py
File "D:\python\FFdelete.py", line 12
file_path = r'C:\Program Files (x86)\Microsoft\'
^
SyntaxError: unterminated string literal (detected at line 12)
and line 12 = file_path = r'C:\Program Files (x86)\Microsoft\'
I tried the above and using double quotes with the r inside the quotes as well.
I found I had to use \ so the path is
file_path = "C:\\Program Files (x86)\\Microsoft\\"
But then I get this error
PermissionError: [WinError 5] Access is denied: 'C:\\Program Files (x86)\\Microsoft\\'