########################################################### ## X2COPY Help ########################################################### Basic Usage: x2copy.exe C:\Path\To\Source C:\Path\To\Destination [switches] If Source is a file, copies Source to Destination. If Source is a directory, copies Source to Destination (but not recursively, unless /S is passed). All timestamps (on files and on directories) are set to the value on the source item (i.e., not to the time that the copy was performed). If the last element (filename) of the source path contains glob characters (* or ?), then only files matching that glob pattern will be copied into the destination. If /S is passed, the glob will be checked against files in subdirectories as well as directly in the source directory. ########################################################### ## Switches ########################################################### Switches start with a / and are placed after the destination path. You do not need to put a space between switches, although a space is required between the destination path and the first switch. All switches are case insensitive. /A - Copies only files with the archive attribute set. /M - Copies only files with the archive attribute set, then clears the archive attribute on the source file. /AT - Copies only files that have attributes that match the mask. The mask can contain one or more of the following letters: ACRHS If more than one letter is in the mask, a file will be copied if any of the attributes match. If this flag is specified more than once, a file will only be copied if its attributes match all of the masks. (For example, /ATH/ATA will copy only files that have both the H and A attributes set.) /AX - Skips copying files that have attributes that match the mask. The mask can contain one or more of the following letters: ACRHS If more than one letter is in the mask, a file will be copied if all of the attributes match. If this flag is specified more than once, a file will be skipped if its attributes match any of the masks. (For example, /AXH/AXA will skip files that have either the H or the A attributes set.) /A0 - Cancels the effect of any prior /A, /M, /AT, or /AX flags. (That's a zero, by the way.) /H - Copies files with either the HIDDEN or SYSTEM flags set. /HO - Copies only files with either the HIDDEN or SYSTEM flags set. /H0 - Skips files with either the HIDDEN or SYSTEM flags set. This is the default. (That's a zero.) /R - Overwrites files in the destination that have the READ-ONLY flag set. /R0 - Does not overwrite files in the destination that have the READ-ONLY flag set. This is the default. (That's a zero.) /S - Copies a directory recursively. Skips empty directories. /E - Copies a directory recursively, including any empty directories. Implies /S. /SGN - Collects all files in one output directory; does not copy subdirectory structure. Files have a number added to prevent different files with the same name from overwriting each other. The newest file (by last-modified time) is given the lowest number. /SG - Same as /SGN. /SGF - Collects all files in one output directory; does not copy subdirectory structure. Files have a number added to prevent different files with the same name from overwriting each other. The file found first during traversal is given the lowest number (this is effectively arbitrary). /SGL - Collects all files in one output directory; does not copy subdirectory structure. Files have a number added to prevent different files with the same name from overwriting each other. The file found last during traversal is given the lowest number (this is effectively arbitrary). /SGO - Collects all files in one output directory; does not copy subdirectory structure. Files have a number added to prevent different files with the same name from overwriting each other. The oldest file (by last-modified time) is given the lowest number. /SGOO - Collects all files in one output directory; does not copy subdirectory structure. If multiple files with the same name are found, only the oldest is kept. /SGNO - Collects all files in one output directory; does not copy subdirectory structure. If multiple files with the same name are found, only the newest is kept. /SGFO - Collects all files in one output directory; does not copy subdirectory structure. If multiple files with the same name are found, only the first found during traversal is kept. /SGLO - Collects all files in one output directory; does not copy subdirectory structure. If multiple files with the same name are found, only the last found during traversal is kept. /SG0 - Disables all /SG* options. (That's a zero.) /Y - Always overwrites files in the destination if they already exist. /Y0 - Always prompts before overwriting files in the destination if they already exist. This is the default. (That's a zero.) /-Y - Same as /Y0. /STATUS - Print status messages during copying. This is the default. /STATUS0 - Suppress status messages during copying. (That's a zero.) /QUIET - Same as /STATUS0.