I'm using a Win7 VM ith VMWare. I setup a shared folder to access some file of my host machine. Now I'm trying to access it through a batch script :
xcopy /y "Z:\Desktop\test\*" "C:\Users\%username%\Desktop\test\"
It's working when I launch the script normally, but not when executing it as admin..
Of course the rest of the script needs admin rights, that's why I execute this script as an admin.
I know that it is probably easy to fix but I didn't find how and I'm fed up to go round in circles..
Thanks !
%username%
will be something different (it's the username of the account running the script).