IF not "$ (configurationname)" = = "Publish" Exit/b 0
If not exist $ (TargetPath) Publish MD $ (TargetPath) Publish
xcopy/y $ (TargetPath) $ (solutiondir) \\publisher
About Xcopy
Http://baike.baidu.com/link?url=PqKP2WNM02x4jWOGlYV4p2nm5X-gtIMitWsWMsIE7rWkWO9cDms-qJ18RptJBFhzgteqVGEFaVOP5n86uHCNgq
c:\users\administrator>xcopy/? Copy files and directory trees. XCOPY source [Destination] [/a |/M] [/d[:d ate]] [/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 to be copied. destination Specifies the location and/or name of the new file. /a copies only the files with the archive property set, but does not change the properties. /M copies only files that have an archive attribute set and closes the archive attribute. /d:m-d-y copies files that change after a specified date or a specified date. If no date is provided, only those files that have the source time newer than the target time are copied. /EXCLUDE:FILE1[+FILE2][+FILE3] ... Specifies a list of files that contain strings. Each string should be on a separate line in the file. If any string matches any part of the absolute path of the copied file, the file is excluded from being copied. For example, specifying a string such as \obj\ or. obj excludes all files under directory obj or all files with the. obj extension, respectively. /p prompts you before creating each target file. /S copies directories and subdirectories, not including empty directories. /e copies directories and subdirectories, including empty directories. Same as/s/e. Can be used to modify/T. /V verifies the size of each new file. /w Prompts you to press the key before copying. /C Continue copying even if there is an error. /I if the target does not exist and you want to copy more than one file, assume that the target must be a directory. /q does not display the file name when copying. /F Displays the full source and destination file names when copying. /L Displays the files to be copied. /g allows encrypted files to be copied to targets that do not support encryption. /h also copies hidden files and system files. /R overwrites read-only files. /T Creates a directory structure, but does not copy files. Empty directories or subdirectories are not included. /T/E includes empty directories and subdirectories. /U copies only files that already exist in the target. /k Copy Properties. General Xcopy resets the read-only attribute. /n is copied with the generated short name. /o copies file ownership and ACL information. /x Copies the file audit settings (implied/O). /y Cancel the prompt to confirm that you want to overwrite the existing destination file. /-y to be prompted to confirm that you want to overwrite the existing destination file. /z copies network files in restartable mode. /b Copies the symbolic link itself and the link target. /j does not use buffered I/O when replicating. It is recommended to use when copying large files. The switch/y can be pre-set in the COPYCMD environment variable. This may be overridden by the/-y on the command line.
Visual Studio generates the use of events, Xcopy implements DLL copy operations,