title: Batch file to locate USB drive used
body: <p>Hello I wanted to practice coding by making a batch file to automate antivirus downloads for my elderly family members. I had it working yesterday but it seems I accidentally broke it and now it says it cant parse the loop on the first line. Its supposed to locate the drive letter of the USB and run malwarebytes from the usb stick. Here is my code:</p>
  
  <pre><code>@echo off
  
  for %%a in (d e f g h i j k l m n o p q r s t u v w x y z) do vol %%a: 2&gt;nul |find "Transcend" &gt;nul &amp;&amp; set drv=%%a:
  %drv%
  
  if exist "c:\program files (x86)\Malwarebytes Anti-Malware\mbam.exe" ( 
  
  ) else (
  
  %drv%\mbam-setup-2.2.1.1043 /silent /NORESTART
  
  sleep 120
  
  )
  
  "c:\program files (x86)\Malwarebytes Anti-Malware\mbam.exe" 
  </code></pre>