반응형
xcopy.exe is definitely your friend here. It's built into Windows, so its cost is nothing.
Just xcopy /s c:\source d:\target
You'd probably want to tweak a few things; some of the options we also add include these:
- /s/e - recursive copy, including copying empty directories.
- /v - add this to verify the copy against the original. slower, but for the paranoid.
- /h - copy system and hidden files.
- /k - copy read-only attributes along with files. otherwise, all files become read-write.
- /x - if you care about permissions, you might want /o or /x.
- /y - don't prompt before overwriting existing files.
- /z - if you think the copy might fail and you want to restart it, use this. It places a marker on each file as it copies, so you can rerun the xcopy command to pick up from where it left off.
If you think the xcopy might fail partway through (like when you are copying over a flaky network connection), or that you have to stop it and want to continue it later, you can use xcopy /s/z c:\source d:\target.
Hope this helps.
반응형
'[====== Development ======] > Etc' 카테고리의 다른 글
디자인 관련 참고 (0) | 2021.09.24 |
---|---|
Git Remote Branch 이름 변경하기 (0) | 2021.09.05 |
[Inno Setup] command Line으로 실행하기 (0) | 2021.08.27 |
Boonean 변수명짓기 (0) | 2021.08.04 |
변수 , 함수명 명명 규칙 (0) | 2021.08.04 |