H:\>
H:\>help xcopy
Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
                           [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U]
                           [/K] [/N] [/Z]

  source       Specifies the file(s) to copy.
  destination  Specifies the location and/or name of new files.
  /A           Copies files with the archive attribute set,
               doesn't change the attribute.
  /M           Copies files with the archive attribute set,
               turns off the archive attribute.
  /D:m-d-y     Copies files changed on or after the specified date.
               If no date is given, copies only those files whose
               source time is newer than the destination time.
  /P           Prompts you before creating each destination file.
  /S           Copies directories and subdirectories except empty ones.
  /E           Copies directories and subdirectories, including empty ones.
               Same as /S /E. May be used to modify /T.
  /V           Verifies each new file.
  /W           Prompts you to press a key before copying.
  /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.
  /Q           Does not display file names while copying.
  /F           Displays full source and destination file names while copying.
  /L           Displays files that would be copied.
  /H           Copies hidden and system files also.
  /R           Overwrites read-only files.
  /T           Creates directory structure, but does not copy files. Does not
               include empty directories or subdirectories. /T /E includes
               empty directories and subdirectories.
  /U           Copies only files that already exist in destination.
  /K           Copies attributes. Normal Xcopy will reset read-only attributes.
  /N           Copies using the generated short names.
  /Z           Copies networked files in restartable mode.

H:\>

Satya - Monday, November 08, 2004 3:59:55 PM

Copy files that have changed since a date


xcopy w:\satya\webapps\akc\*.properties w:\satya\temp\akc /D:11-01-2004 /s

Copy all properties files that have changed since the 1st of 2004. Create the sub directories as needed.

Satya - Monday, November 08, 2004 4:09:57 PM

A more complete example


@rem *****************************************
@rem quietely delete the target directory
@rem *****************************************
rd /s /q w:\satya\temp\akc

@rem *****************************************
@rem Copy the relevent war file contents
@rem *****************************************
@xcopy w:\satya\webapps\akc\*.properties w:\satya\temp\akc /D:11-01-2004 /s 
@xcopy w:\satya\webapps\akc\*.html w:\satya\temp\akc /D:11-01-2004 /s
@xcopy w:\satya\webapps\akc\*.xml w:\satya\temp\akc /D:11-01-2004 /s

@rem *****************************************
@rem Copy the relevent war file contents
@rem *****************************************

@echo *****************************************
@echo Copied Target files are
@echo *****************************************
@dir /A-D /s /b w:\satya\temp\akc

@echo *****************************************
@echo Copied Directories are
@echo *****************************************
@dir /AD /s /b w:\satya\temp\akc