Command Prompt: should open to your User Profile
Command Prompt (Admin): should open to C:\Windows\system32
Your Command screen shot indicates by the prompt that your command opens to C:\Windows
That is not normal.
How are you launching Command Prompt?
There are a number of different ways (Run dialog, Quick Access Toolbar ... aka X-menu, from search results, from File Explorer blue FILE menu).
Try Winkey +X
Select Command Prompt
enter the following command
post a screen shot of the output
then you can exit Command
The easiest thing to do is what cerebus suggested, fully qualify the source and destination:
You could also pass the targetFolder as a parameter
You have to change the batch file to use the passed parameter
xcopy C:\sourceFolder %1 /D /E /C /R /H /I /K /Y
You would need to test that a parameter was passed
noParm decision > prompt for targetFolder
noParm decision > use a predefined default
You also might want to test that the targetFolder exists
noExist decision > offer to create it
noExist decision > error msg and exit