Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cubespace/6090fa961ada5fc5db96a66dd067a0f6 to your computer and use it in GitHub Desktop.
Save cubespace/6090fa961ada5fc5db96a66dd067a0f6 to your computer and use it in GitHub Desktop.
cmd create network path and copy dir with includes
net use X: \\SERVER\Share
// привязать к расшареной папке на сетевом ресурсе имя диска (X)
xcopy C:\users D:\copy1 /H /Y /C /R /S
// скопировать все файлы и подкаталоги ( /S ) с перезаписью существующих без запроса ( /Y ) , включая скрытые и системные. ( /H ) с перезаписью файлов с атрибутом "Только чтение" (/R) и игнорированием ошибок ( /C )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment