How change files in :C drive on windows with python


I’m working in program that need to save my settings data in drives, so I put my data’s file in C drive next to the my program files. But My program can’t change them , windows needs permission to let program change files, what can I do that my program can change the data file !?

Thanks everyone


Just launch your program with administrators rights. It should probably solve the write/change permissions.

Answered By – Bjørnar Borge

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published