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 !



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.