xcopy command syntax

Cards (34)

  • copy archive files

    /a
  • copy symbolic link
    /b
  • forces xcopy to continue even if it encounters errors
    /c
  • xcopy with a specific date
    /d
  • same as /s but create empty folders
    /e
  • display the full path and file name
    /f
  • copy encrypted file
    /g
  • does not copy hidden files or system files
    /h
  • forces xcopy to asssume that destination is a directory
    /i
  • copies files without buffering, useful for very big files
    /j
  • copying read only files
    /k
  • show a list of the files and folders to be copied
    /l
  • identical with /a but will turn off the archive attributes
    /m
  • create files and folders using short file names
    /n
  • retains ownership and access control list(ACL)
    /o
  • you'll be prompted before the creation
    /p
  • opposite of the /f option, put xcopy into quiet mode
    /q
  • overwrite read only files in the destination
    /r
  • copy directories and subdirectories and the files contained within them
    /s
  • forces xcopy to create a directory structure
    /t
  • copy files in source that is already in the destination
    /u
  • verifies each file as its written, base on its size
    /v
  • to present "Press any key" when ready to being copying iles
    /w
  • copies files audit settings and system access control list(SACL)
    /x
  • to stop the command prompting you about overwriting files

    /y
  • force the command to promt you about overwriting files
    /-y
  • safely stop copying files when network connection is lost
    /z
  • help switch
    /?
  • to specify one or more file to skip
    /exclude:
  • use to copy files or folders from one location to another
    xcopy command
  • copy files to a new folder
    xcopy C:\Files E:\Files /i
  • Xcopy Backup Script
    xcopy "C:\Important Files" D:\Backup /c /d /e /h /i /k /q /r /s /x /y
  • Copy Files and Folders Over the Network
    xcopy C:\Videos "\\SERVER\Media Backup" /f /j /s /w /z
  • Duplicate Folder Structure xcopy command example

    xcopy C:\Client032 C:\Client033 /t /e