Różnice
Różnice między wybraną wersją a wersją aktualną.
Poprzednia rewizja po obu stronach Poprzednia wersja | |||
poradniki:polecenia-cmd:xcopy [28.07.2020 - 13:31] – admin | poradniki:polecenia-cmd:xcopy [07.12.2023 - 15:55] (aktualna) – edycja zewnętrzna 127.0.0.1 | ||
---|---|---|---|
Linia 1: | Linia 1: | ||
+ | ====== XCOPY ====== | ||
+ | Kopiuje pliki i foldery razem z subfolderami. | ||
+ | |||
+ | ===== Składnia ===== | ||
+ | |||
+ | < | ||
+ | xcopy < | ||
+ | </ | ||
+ | |||
+ | ===== Parametry ===== | ||
+ | |||
+ | ^ Parameter ^ Description ^ | ||
+ | | < | ||
+ | | [< | ||
+ | | /w | Displays the following message and waits for your response before starting to copy files: Press any key to begin copying file(s) | | ||
+ | | /p | Prompts you to confirm whether you want to create each destination file. | | ||
+ | | /c |Ignores errors. | | ||
+ | | /v | Verifies each file as it is written to the destination file to make sure that the destination files are identical to the source files. | | ||
+ | | /q | Suppresses the display of xcopy messages. | | ||
+ | | /f | Displays source and destination file names while copying. | | ||
+ | | /l | Displays a list of files that are to be copied. | | ||
+ | | /g | Creates decrypted Destination files when the destination does not support encryption. | | ||
+ | | /d [: | ||
+ | | /u | Copies files from Source that exist on Destination only. | | ||
+ | | /i | If Source is a directory or contains wildcards and Destination does not exist, xcopy assumes Destination specifies a directory name and creates a new directory. Then, xcopy copies all specified files into the new directory. By default, xcopy prompts you to specify whether Destination is a file or a directory. | | ||
+ | | /s | Copies directories and subdirectories, | ||
+ | | /e | Copies all subdirectories, | ||
+ | | /t | Copies the subdirectory structure (that is, the tree) only, not files. To copy empty directories, | ||
+ | | /k | Copies files and retains the read-only attribute on Destination files if present on the Source files. By default, xcopy removes the read-only attribute. | | ||
+ | | /r | Copies read-only files. | | ||
+ | | /h | Copies files with hidden and system file attributes. By default, xcopy does not copy hidden or system files | | ||
+ | | /a | Copies only Source files that have their archive file attributes set. /a does not modify the archive file attribute of the source file. For information about how to set the archive file attribute by using attrib, see Additional references. | | ||
+ | | /m | Copies Source files that have their archive file attributes set. Unlike /a, /m turns off archive file attributes in the files that are specified in the source. For information about how to set the archive file attribute by using attrib, see Additional references. | | ||
+ | | /n | Creates copies by using the NTFS short file or directory names. /n is required when you copy files or directories from an NTFS volume to a FAT volume or when the FAT file system naming convention (that is, 8.3 characters) is required on the Destination file system. The Destination file system can be FAT or NTFS. | | ||
+ | | /o | Copies file ownership and discretionary access control list (DACL) information. | | ||
+ | | /x | Copies file audit settings and system access control list (SACL) information (implies /o). | | ||
+ | | / | ||
+ | | /y | Suppresses prompting to confirm that you want to overwrite an existing destination file. | | ||
+ | | /-y | Prompts to confirm that you want to overwrite an existing destination file. | | ||
+ | | /z | Copies over a network in restartable mode. | | ||
+ | | /b | Copies the symbolic link instead of the files. This parameter was introduced in Windows Vista®. | | ||
+ | | /j | Copies files without buffering. Recommended for very large files. This parameter was added in Windows Server 2008 R2. | | ||
+ | | /? | Displays help at the command prompt. | |