title: Need to send mail using batch file
body: <p>I have the below code that gives me 2 values. </p>
  
  <ol>
  <li>First is the most recently modified directory based on some ext file (test.mtc) </li>
  <li>Second is taking the name of that (test.mtc) file and adding the domain to send mail. For eg test.companyname.com</li>
  </ol>
  
  <p>I was able to achieve this with the below batch file but now I need to send mail using the output of this batch file. Using blat is it doable?</p>
  
  <p>Below is the script I wrote in my batch file
  Output.bat</p>
  
  <pre><code>cd C:\Desktop\Foldername
  for /f "tokens=*" %%a in ('dir /b /a-d *.mtc') do echo User=%%~na@companyname.com &gt;&gt; Output.txt
  for /f "delims=" %%x in ('dir /a:d /b /o:d') do set recent=%%x
  echo Path=\\Mycomputername\Desktop\FolderName\%recent% &gt;&gt; Output.txt
  </code></pre>
  
  <p>I need to use these values and send mail using batch file. something like below
  -- send to  from  subject test complete body  </p>