Search code examples
commentsxcopyremarks

Comments or remarks in an xcopy exclude file


I know how xcopy works, but is it possible to add comments to your exclude files? Something like this:

.pdb
.xml
.config
Some.dll /* excluded because ... */

Solution

  • This is how we did it:

    .pdb
    .xml
    .config
     /* excluded because ... */
    Some.dll
    

    Maybe a no-brainer for some, but I thought there might have been a default way of commenting in excluded files. Maybe xcopy even searches for a file with filename '/* excluded because ... */, but it works for us.