title: Concatenate two strings, 'present working directory' and the 'app.exe' filename to frame absolute path
body: <p>I have a directory structure similar to this:</p>
  
  <p>under <code>'D:\Ashwin\rev'</code></p>
  
  <pre><code>rev
  --&gt;dist
  ----&gt;app.exe
  --&gt;copier
  ----&gt;cs
  ------&gt;cs.bat
  ------&gt;pscp.exe
  --&gt;Copy.bat
  </code></pre>
  
  <p>Content of <code>Copy.bat</code> is:</p>
  
  <pre><code>@echo "Starting copy"
  @call "copier\cs\cs.bat"
  </code></pre>
  
  <p>and content of <code>cs.bat</code> is incomplete yet. </p>
  
  <pre><code>%BINARY% = DIR /b dist\*%.exe
  %ASH% = %CD%%1\dist\%BINARY% 
  
  @call copier\cs\pscp -l root -pw ReDBuLL &lt;What to do?&gt; 192.168.1.16:/root/workspace
  </code></pre>
  
  <p>Here's why. I am totally new to batch script. 
  The purpose of this script is to send the .exe file alone to the remote server using <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" rel="nofollow">pscp</a>
  tool. </p>
  
  <p>I am stuck concatenating the two strings. </p>
  
  <ol>
  <li><code>BINARY</code> which has the <code>app.exe</code> name. </li>
  <li><code>ASH</code> which is the concatenated
  string of current working path and <code>BINARY</code></li>
  </ol>
  
  <p>With this concatenated sting I plan to pass this to the <code>pscp</code> command and transfer the file to the remote server.</p>
  
  <p>I should only be using <code>Copy.bat</code> to copy the file and not the <code>cs.bat</code></p>
  
  <p>What else is missing here?</p>
  
  <p>P.S: I could have hard coded the path but that's not what I am looking to do. Because app.exe would not be the only file in the directory as I am going to add several other files. </p>