So this is what i have got so far, the "%cd%" is meant to go to the current directory, then the "Test.exe" is the file i want to copy. But i need help specifying, that i want to copy it to Desktop, without knowing the drive letter or the username. But when i try this, it doesn't work. Any help is greatly appreciated. This is the code i have got -
xcopy /s "%cd%\Test.exe" "%drive%\Users\%Username%\Desktop\"
I also want to run the "Test.exe" as well after it has been copied to that location.