title: Jenkins-Unable to copy binaries to a shared remote folder(Windows)
body: <p>I am building  a Jenkins pipeline for the ASP Dotnet project with basic three steps:1. GitCode download2. Build the code and 3. Deploy the Binary to the remote machine(By copying binaried to a shared folder)
  I have  Jenkins installed on Windows OS on the host and remote server as well Both machines can ping each other.</p>
  <p>I am facing a problem in step # 3 to copy Binary files from the Jenkins server(windows) to another Window server(deployment server).  For that, I am using the command line to copy the file to the desired share folder. 
  When I copy files using the command-line interface,  it is happening without any error, but when I run through Jenkins it is giving me an error:</p>
  <p>[compile] $ cmd /c call C:\windows\TEMP\jenkins8062217538120121374.batC:\windows\system32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\MES\compile&gt;xcopy /h /i /c /k /e /r /y D:\www\workspace \192.16.8.15\public\shared\aspweb\ Invalid path
  0 File(s) copied
  C:\windows\system32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\MES\compile&gt;exit 4 Build step 'Execute Windows batch command' marked build as failureArchiving artifacts</p>
  <p>However the command &quot;xcopy /h /i /c /k /e /r /y D:\www\workspace \192.16.8.15\public\shared\aspweb&quot; is aboutltely working fine in Window's commnad line.Please help me.</p>
  <p>Apart from the above, Could you please help me to know:</p>
  <ol>
  <li>What is the best approach for the deployment</li>
  <li>Is following master/slave approach a good idea ( In this approach the drawback is, for multiple node the entire code get downloaded on slave and build it, so didn't prefer this approach)</li>
  <li>Any other good approach</li>
  </ol>