title: How do I calculate hash value of specific file in batch script?
body: <p>I am new to batch scripting and I am having troubles in a few lines trying to calculate hash value of a specific file.</p>
  
  <p>I am writing a script to check for a file that I will be sending from one place to another. To check that the files are identical, I need to calculate the hash value of the file before it was sent and after it was sent to compare the hash value to make sure it is identical. Below is my code that I have written to calculate and compare the hash value of the file.</p>
  
  <pre><code>set original=CertUtil -hashfile \\172.168.101.187\smb\1GBTESTFILE.TXT MD5
  set received=CertUtil -hashfile \\172.168.101.188\smb\1GBTESTFILE.TXT MD5
  if original==received(
  echo no file lost
  ) else (
  echo file lost
  )
  </code></pre>
  
  <p>I should be expecting 'no file lost' however, I am receiving "The syntax of the command is incorrect".</p>