在windows批处理中,我会这样做
xcopy source_spec target_spec /d/u/r/y
/d : more recent
/u : only those that exist in target
/r : ignore the read only flag
/y : don't prompt for overwrite
Run Code Online (Sandbox Code Playgroud)
什么是最简单的使用powershell copy-item/copy cmdlet等价物.
对于摇摆 - 是的,我知道我可以在powershell中进行xcopy :-)
所以在powershell我做:
cmd /c xcopy source_spec target_spec /d/u/r/y
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5473 次 |
| 最近记录: |