13. Security Settings for xcopy files that can be copied in WIN2000
If you copy a file elsewhere in nt4.0, the acl of the file will be lost. You must use the scopy.exe program in resource kites. The xcopy program under WIN2000 has several more parameters than nt4.0, you can copy the file security settings.
Xcopy Copies files and directories, including subdirectories.
Xcopy source [destination] [/w] [/p] [/c] [/v] [/q] [/f] [/l] [/d [: date] [/u] [/I] [/s [/e] [/t] [/k] [/r] [/h] [/a |/ m] [/n] [/exclude: filename] [/y |/-y] [/z]
Parameters
Source
Specifies the location and name of the file to be copied. This parameter must contain the drive or path.
Destination
Specifies the target of the file to be copied. This parameter can contain the drive letter, colon, directory name, file name, or combination.
/W
Before copying a file, the following message is displayed and you are waiting for your response: Press any key to begin copying file (s)
/P Copyright Institute
You are prompted to confirm whether to create each target file.
/C
Ignore errors.
/V
Verify each file when writing the target file to ensure that the target file is exactly the same as the source file. This function is inherent in the Windows 2000 operating system and will be ignored. Accept this switch only for MS-DOS compatibility with previous versions.
/Q
Disable xcopy message display.
/F
The source file name and target file name are displayed during copy.
/L
If no file is copied, only the files to be copied are displayed (listed.
/D [: date]
Only the source files changed after the specified date or date are copied. If the date value is lost, xcopy copies all source files whose time is earlier than the existing destination file. This option allows you to update only the changed files. If a date is specified, use a hyphen (-) as the separator instead of a forward slash (/) so that the date is not interpreted as another parameter.
/U
Only copy (update) existing files in destination from source.
/I
If source is a directory or contains wildcards, and destination does not exist, xcopy assumes that destination specifies the directory name, creates a new directory, and copies all specified files to the new directory. By default, xcopy will prompt you to specify whether the destination is a file or a directory.
/S
Copy non-empty directories and subdirectories. If this switch is omitted, xcopy will work in a directory.
/E
Copy all subdirectories, including empty directories. Used with the/s and/t switches.
/T
Only copy the sub-directory structure (tree) without copying the file. To copy an empty directory, the/e switch must be included.
/K
Copy a file. If the source file has a read-only attribute, this attribute is retained in the target file. By default, the read-only attribute is deleted.
/R
The read-only file is skipped during replication.
/H
Copy a file that has hidden and system file attributes. By default, the xcopy command does not copy hidden files or system files.
/
Copy only the source files with the archive file attribute settings. This switch does not modify the attributes of the archive file of the source file. For information about how to set the attributes of an archive file, see the attrib command.
/M
Copy the source file with the archive file attribute settings. Unlike the/a switch, the/m switch disables the archive file attribute of the specified file in the source. For information about how to set attributes of an archive file, click attrib in the related topics list [JG1.
/N
Use the NTFS short file or directory name to copy the file. This switch is required when a file or path is copied from the NTFS Volume to the FAT volume or when the target volume requires the FAT file system Naming Convention (8.3. The target file system can be FAT or NTFS.
/Exclude: filename
Exclude copying objects listed in a specified file. Excluded files can have a list of excluded styles (one per line, but not wildcards ). If an exclusion style in the file matches any part of the topic file path, the file is not copied.
/Y
Do not prompt you to overwrite the existing target file.
/Y
The switch can be preset in the copycmd environment variable. This switch can be replaced by/-y on the command line. By default, the system prompts when overwriting, unless the copy command is executed from within the batch processing script.
To attach a file, specify a single target file and multiple source files (using wildcards or file 1 + file 2 + file 3 Format ).
/-Y
You are prompted to check whether you want to replace the existing target file.
/Z Copyright Institute
You can copy data over the network in rebootable mode. If the connection is lost during the replication phase (for example, if the server disconnects offline), the replication will continue after the connection is established again. By using this command, the percentage of copied operations performed on each file is displayed.