I am searching for a dos command which can cut files from a given folder and paste those files in to an Archive folder which sits along side with the files need to be uploaded into. There are folders with space in its name. I have to insert this command in a bat file. I use below code for my other tasks and its working fine, but it does not do cut and paste, it does copy and paste.
echo Start Copy
set DEST_DIRS="X:\", "N:\Reports\Production Repts\Reports"
set FILENAMES_TO_COPY="2018All Projects_New.xlsx","2017Report_New.xlsx"
for %%F in (%FILENAMES_TO_COPY%) do (
for %%D in (%DEST_DIRS%) do (
echo file "%%~F" to "%%~D"
xcopy /Y "%%~F" "%%~D"