commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
I can remember "cp -av" on Unix like systems to copy files and directories. The same can be done on Windows without extra software, somewhat.
The switches mean:
/E Copies directories and subdirectories, including empty ones.
Same as /S /E. May be used to modify /T.
/H Copies hidden and system files also.
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/Z Copies networked files in restartable mode.
/I If destination does not exist and copying more than one file,
assumes that destination must be a directory.
/K Copies attributes. Normal Xcopy will reset read-only attributes.
/F Displays full source and destination file names while copying.
I don't type that all the time, I stick it into a file called "cpav.cmd" and run that.
echo xcopy /e/h/y /z/i /k /f %1 %2 > cpav.cmd
cpav zsh zsh2
There is 1 alternative - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.