Having a quick look at your comment, @newPath is being commented out.
SET @newFlieName=@DestLink
The output of the command would be something like:
COPY /Y "C:\New\Test1.docx" /B "D:\New\"
This will copy the file
Test1.docx in location
C:\New\ to destination
D:\New\ with the same file name
Test1.docx.
Please read:
http://ss64.com/nt/copy.html[
^], I find this a good source for command line references.
Also you should be aware of the security issues when using xp_cmdshell.
http://blogs.msdn.com/b/sqlsecurity/archive/2008/01/10/xp-cmdshell.aspx[
^]