I'll assume this is about iCloudDrive for Windows (you don't mention that explicitly in your question). If that's the case,
follow these steps:
- Disable iCloud Drive from the Control Panel (please really do this, otherwise it will mess things up)
- Move (not copy) your iCloudDrive directory
C:\Users\<username>\iCloudDrive
to the new location. - Open a command prompt and type:
mklink /J "C:\Users\<username>\iCloudDrive" "<new destination>"
This creates a junction (sort of a shortcut, but more powerfull) from the old location to the new location. - Reboot your computer and everything should be fine
The latest iCloud.app for PC is released under 2019. Well, this app sucks. It doens't work as expected at all. It cannot download, it cannot upload. One day, you occasionally find that the iCloud.app for PC is updated automatically, you'll have to download the older version to make it work. Well, now, the older version 1.14.108 not work neither.
It's really confusing why this kind of thing happens in Apple? Does apple employees are all designers, no SRE? no Monitoring system? It makes me really angry. I have to handle this shit many times in one year.