Jump to content

Copying Folder Problems - Scripts

So I use scripts to occasionally duplicate, backup, etc save game files, hard drives, etc. These scripts use a mixture of xcopy and robocopy.  The problem is it seems Windows doesn't let you copy certain directories. This is on my son's PC, where he is the only user, and Admin. This line backs up his Minecraft worlds to another hard drive.

 

xcopy "C:\Users\Chase\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\minecraftWorlds\*.*" "E:\Users\Chase\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\minecraftWorlds\" /d /y /r /h /s /c /f /i

 

However this doesn't work as it appears this is a folder that I don't have permissions to copy. This "code" does work as I copy lots of other things using it. So what am I missing?

Link to comment
https://linustechtips.com/topic/1328406-copying-folder-problems-scripts/
Share on other sites

Link to post
Share on other sites

5 minutes ago, OhioYJ said:

UWP

I *believe* this is your issue as (again, IIRC) those types of folders require you to manually enter admin credentials before they will copy, so an automated script will break. You *might* try turning off UAC completely and see what happens.

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×