title: SQL Server xcopy and xp_cmdshell file not found
body: <p>I read other help posts but I keep getting file not found on the the network.  The path is on the network on a fileshare and I'm using RDP to remote to my own machine that connects to the SQL Server database.</p>
  
  <p>I'm using xcopy command with xp_cmdshell. I can't use just "copy" because I get an access denied error so I'm using Xcopy in this format:</p>
  
  <pre><code>echo f|xcopy /i "\\fileserver\file\excelfile1.xls" \\fileserver\file\newdirectory\excelfile1.xls"
  </code></pre>
  
  <p>I have tried almost everything and read other posts but this is still not working.  I do have parameters for the directory and files, etc. but I actually have it hard-coded in the dos command it's still not working.</p>
  
  <p>Any ideas would be great.</p>