title: Batch Escape Percent sign
body: <p>Hi Guys having a really hard time getting an environmental variable piped to clip.exe, in a regular command prompt it works but once in batch file it fails. I have tried escaping with double <code>%%</code> and a few other tricks. Nothing seems to work.</p>
  
  <p>I am trying to pipe the output of the citrix environmental variable <code>%clientname%</code> to clip.exe like the following:</p>
  
  <pre><code>@echo off
  echo %clientname% | clip
  </code></pre>