Why when Running this script to copy from the "config64" folder (if files exist)(if not copy from "config32") if works correctly when running Batch file normally (copies the config64), but using the exact same line when running the Batch file as "Run as Administrator" it doesn't work correctly (copies the config32, even though Files do exist config64 folder as they did when I ran it normally and it worked)
>nul 2>nul dir /a-d "Folder\config64\*" /s && (XCOPY "%~dp0Folder\config64\File64.ini" "%ProgramFiles(x86)%\CompanyFolder\ProductFolder\" /y /d) || (XCOPY "%~dp0Folder\config32\File32.ini" "%ProgramFiles(x86)%\CompanyFolder\ProductFolder\" /y /d)
UAC is turned off and I'm the administrator (only user on a standalone PC) running windows 8.1.
Is there a reason or it is a strange bug with Windows 8.1?