title: Windows batch script to unhide files hidden by virus
body: <p>Since I'm seing many people having their files hidden by flash drive viruses, I'm  giving them a Windows command line using <strong>attrib</strong> (or using Linux) to solve the problem when the infected files are removed and the their files are still "missing". The command removing file and folders properties system, hidden and arquive (not really needed):</p>
  
  <pre><code>attrib -s -h -a /s /d &lt;drive letter&gt;:\*.*
  </code></pre>
  
  <p>Does anyone know a how to make a script to prompt the user for the drive letter or folder?
  I've already seen some software that does something like this but I think this would be better.</p>
  
  <p>thx!</p>
  
  <p>[Solved]
  Solved using Cheeso's code as base</p>
  
  <pre><code>@ECHO OFF
  ECHO "Enter Drive letter"
  set /p letter=
  
  attrib -s -h -a /s /d %letter%:*.*
  </code></pre>
  
  <p>[Improved a bit]</p>
  
  <pre><code>@ECHO OFF
  ECHO Type the drive letter. ONLY the letter.
  ECHO ALL FILES ARE GOING TO BE MODIFIED!!!
  set /p letter=
  
  ECHO %letter%: selected
  taskkill /im explorer.exe /f
  ECHO.
  ECHO "Modifying files..."
  ECHO.
  
  attrib -s -h -a /s /d %letter%:\*.*
  
  ECHO "Process completed."
  
  start explorer %letter%:
  taskkill /im cmd.exe /f
  </code></pre>