'Missing destination file operand?

I am simply trying to move a directory with subdirectories to another directory using CMDER.

λ mv "c:\Program Files\ANOTHERTESTDIR\" c:\proj
mv: missing destination file operand after 'c:\Program Files\ANOTHERTESTDIR" c:\proj'
Try 'mv --help' for more information.

I am running an elevated command prompt, and if I change into the directory itself using cd c:\Program Files\, I can move the ANOTHERTESTDIR directory just fine using the mv command, but if I am NOT in the directory (ie. I use absolute paths), I keep getting this missing destination file operand error. I tried adding different flags as well but that didn't work out.

Could someone point out what's wrong with my command? I tried using mv --help, along with other google documentation...but can't seem to figure it out.



Solution 1:[1]

Try mv 'c:\Program Files\ANOTHERTESTDIR' 'c:\proj'

You'll see that I only removed the trailing slash after ANOTHERTESTDIR.

I tested this and it worked with no errors:

cmder mv command

It also works if you add the slash AFTER the closing quote:

mv 'c:\Program Files\ANOTHERTESTDIR'\ 'c:\proj'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 adriennetacke