c/microsoft365 · by Safipok@lemmy.ml · 1yHow can I pull a big folder from OneDrive preferably with command line on Windows? 4 points · 6 comments · view on lemmy.world
6 Comments
nihilist_hippie@lemmy.ca · 2 pts · 1y
Not sure what you mean by 'pull a folder'. Copy?
Here's the Powershell command to copy a directory:
Copy-Item -Path "C:\source\folder" -Destination "D:\destination" -RecurseModify to your use case!
Safipok@lemmy.ml · 2 pts · 1y
So, I have a folder in OneDrive of my company. But, everytime I try to download the huge structure it fails. I was wondering if there is any command to copy the whole structure.
nihilist_hippie@lemmy.ca · 1 pts · 1y
Have you tried the command above? What about the OneDrive desktop app? (I know you want command line but I'm just checking)
Safipok@lemmy.ml · 2 pts · 1y
Yeah, I ended up just signing in to onedrive on the desktop. I initially did not want to sign in, but I was forced to anyway.
Zachariah@lemmy.world · 1 pts · 1y
If you right-click on a OneDrive folder (or subfolder), you can choose to have it always keep a local copy.
After that, you’ll have much more success doing things to these files (such as bulk copy) that normally work just fine on regular local folders.
Safipok@lemmy.ml · 2 pts · 1y
Yeah, I ended up doing this. I initially did not want to sign in, but I was forced to anyway.