I just want an equivalent of "mv dir target", and have dir get moved to target\dir.
- cmd move doesn't even work across filesystems
- powershell's doesn't either
- xcopy doesn't move
- robocopy fails at "robocopy.exe /move p1 p2 dir-in-p1" (the syntax here is the problem, see the accepted answer)
Robocopy does it fine.
taking the folder logs and moving it into the documents folder (same level):
This worked fine, it moved it without needing a folder created ahead of time and its no longer in the original location.
Not sure what's wrong with running the built-in move command - it moves across file systems just fine on my desktop (Windows XP).
My approach is to install Cygwin and use 'mv'. But, then, whenever I'm forced to work on Windows installing Cygwin is one of my first actions.