title: How do I set up the Copy Files Task in Azure Devops after a VB6 build?
body: <p>In response to <a href="https://stackoverflow.com/questions/54796027/how-do-i-specify-my-custom-agent-in-the-build-pipeline">this question about making an Azure build pipeline for a VB6 project</a></p>
  
  <p>I have managed to create the following Build Pipeline so far</p>
  
  <pre><code>pool:
    name: Default
  steps:
  - script: |
     echo Write your commands here
  
     echo Use the environment variables input below to pass secret variables to this script
    vb6.exe /m /out errors.txt Project1.vbp
    workingDirectory: 'C:\dev\hello'
    failOnStderr: true
    displayName: vb6
  
  - powershell: |
     # Write your powershell commands here.
  
     Write-Host "Hello World"
  
     # Use the environment variables input below to pass secret variables to this script.
  
  
     if(Test-Path .\errors.txt)
     {
        $file = Get-Content .\errors.txt 
        Remove-Item .\errors.txt
  
        if($file | Select-String "succeeded." -quiet) { exit 0 }
  
        $file | Where-Object {Write-Host "##vso[task.logissue type=error]$_"}
     }
    displayName: 'PowerShell Script'
  </code></pre>
  
  <p>When I run it, the .EXE does get created on the Agent.</p>
  
  <p>Next I want to copy the .EXE and .DLLs to an Azure Storage location.</p>
  
  <p>I understand I need to use the Copy Files Task and then a Publish Task.</p>
  
  <p>I am trying to use the designer to figure out the YAML for the Copy Files Task </p>
  
  <p><a href="https://i.stack.imgur.com/703ON.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/703ON.png" alt="Copy Files task"></a>  but I don't know what to put. The target text box is not allowing input.</p>
  
  <p>[Update]</p>
  
  <p>I have been able to add the following task after studying <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/copy-files?view=azure-devops&amp;tabs=yaml" rel="nofollow noreferrer">the help</a>
  However no files get copied.</p>
  
  <pre><code>  - task: CopyFiles@2
    inputs:
      contents: '*c:\dev\hello\*.exe*' 
      targetFolder: c:\dev\out2
  </code></pre>