So, I have a very simple question, but I can't find a good answer from my research

I am wondering if there is an easy way to copy the entire contents of for example the C: drive and move it to another location like an external hard drive using a python script. I have understood that I will need to use the shutil module for this, but no matter what I try, I can’t get the script to copy ALL the contents of the C: drive, it just grabs random data from the target location and copies it over to where I instruct it to. If someone can point me in the right direction with some snippets of some code that can get me on track, it would be super appreciated.

This is for a school project, and I am pretty much a noob in programing, so sorry if this question seems stupid. But thank you for all input and help. Cheers!

>Solution :

A direction : do you execute your python script as admin ? Because in the C, there are folders and files a normal user doesn’t have the right to see and copy.

I you still experience the problem, could you share us your code and error message ?
Thanks.

Leave a Reply