I wanted to make a windows command line script that moves all of the user data into a folder.
I stared with moving all the files from the desktop into a folder
Its working with xcopy but i revive some errors while using move
.
@echo on
set SOURCE=C:\Users\%username%\Desktop
set DESTINATION=C:\dir2
xcopy "%SOURCE%\*" "%DESTINATION%\*" /y
pause
This works with xcopy
but when I change it to move
the syntax breaks.
Why is it happening?