title: Batch - system can not find the file specified
body: <p>I have the following batch file:</p>
  
  <pre><code>set file_name=workflow.xml
  
  echo ^&lt;?xml version="1.0" encoding="UTF-8"?^&gt;&gt; "%file_name%"
  echo ^&lt;?Siebel-Property-Set EscapeNames="true"?^&gt;&gt;&gt; "%file_name%"
  echo ^&lt;ListOfPropertySetEx^&gt;&gt;&gt; "%file_name%"
  
  for /f "usebackq delims=|" %%f in (`dir /B /ON "%~1\SI0002\Workflow Process*"`) do 
  (C:\cygwin\bin\grep -m1 -e "   PROCESS_NAME=\".*^\"" "%~1\SI0002\%%f" |  
  C:\cygwin\bin\sed  "s/.*   PROCESS_NAME=\x22\(.*\)\x22/ &lt;PropertySet 
  FlowSearchSpec=\"\[Process Name\]=\^&amp;apos;\1\^&amp;apos;\"\/&gt;/"&gt;&gt; "%file_name%")
  
  echo ^&lt;/ListOfPropertySetEx^&gt;&gt;&gt; "%file_name%"
  </code></pre>
  
  <p>It is not working on the <strong><em>for in do</em></strong> part of batch file: The system can not find the file specified. I have properly installed C:\cygwin\bin\grep[sed], and what is insteresting that this batch file is working on another machine. What am I missing? Thanks in advance.</p>