Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading