Reputation: 53
I'm trying to move folders that are stored in AppData for one of my programs. I'm using the following in a batch file:
xcopy C:\Users\htpcn\AppData\Roaming\Kodi\userdata\addon_data\plugin.audio.pandoki\Pandoki\* E:\Music\Pandoki Tracks
I've also tried the move command but no luck. My guess is you can't move or copy files from this directory but I haven't had any success finding any documented limitation
Upvotes: 1
Views: 3867
Reputation: 9266
If a folder has a space in it, then you need to make sure to put it in quotes in your command, so that xcopy
doesn't treat it like a different parameter. In this case, the folder E:\Music\Pandoki Tracks
has a space, so it must be in quotes.
To move folders, also use the /S
or /E
parameter to make xcopy
act recursively on subdirectories. To see the full list of parameters, use xcopy /?
xcopy "C:\Users\htpcn\AppData\Roaming\Kodi\userdata\addon_data\plugin.audio.pandoki\Pandoki\*" "E:\Music\Pandoki Tracks" /E
It is a good practice to put all paths in quotes when passing to commands like xcopy
. It does no harm for paths without special characters like spaces, and it saves on debugging confusion when the path does have special characters and you don't notice.
Upvotes: 1