xcopy some useful switches

علی ذوالفقار
1402/03/01 06:59:22 (387)
xcopy ..\FormGen\js \\192.168.0.100\d$\WWW\FormGen\js /e /y /m 
xcopy rptApp.js     \\192.168.0.100\d$\WWW\Reports\rptApp.js /y /m
xcopy ngRoutes      \\192.168.0.100\d$\WWW\Reports\ngRoutes /e /y /m

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
                           [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
                           [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B] [/J]
                           [/EXCLUDE:file1[+file2][+file3]...]

  source       Specifies the file(s) to copy.
  destination  Specifies the location and/or name of new files.
  /E           Copies directories and subdirectories, including empty ones.
  /M           Copies only files with the archive attribute set,turns off the archive attribute.
  /V           Verifies the size of each new file.
  /C           Continues copying even if errors occur.
  /I           If destination does not exist and copying more than one file, assumes that destination must be a directory.
  /Y           Suppresses prompting to confirm you want to overwrite an existing destination file.
  /Z           Copies networked files in restartable mode.
  /R           Overwrites read-only files.
  /H           Copies hidden and system files also.

Back