For robocopy, both the source and destination must be directories. You are passing the path to a file, and robocopy is correctly telling you that it's not a directory.
To transfer specific files, use
robocopy source_dir destination_dir file
. For example:
robocopy \\diva-disk.mam\tvsa_inter\discos-duros_rz\prueba_mueve_tmp \\diva-disk.mam\tvsa_inter\discos-duros_rz\prueba_mueve MARIA_LA_DEL_BARRIO-130-201002232705_DV50_3_prueba_mueve.avi /MOV /LOG+:D:\test\mueve.txt
To use that in a batch file, use three parameters:
robocopy %1 %2 %3 /MOV /LOG+:D:\test\mueve.txt
If the application which calls the batch file can't pass the directory and filename separately, then you'll need to do it in the batch file. Google found
this[
^], which seems to work:
@echo off
For %%A in ("%1") do (
Set Folder=%%~dpA
Set Name=%%~nxA
)
robocopy %Folder% %2 %Name% /MOV /LOG+:D:\test\mueve.txt