title: Batch file get command's output stored in a variable
body: <p>i'm trying to store this WMIC output into a variable. when i echo VAL i get nothing !
  all i'm trying to achieve is getting a file's last modification date. the problem with this WMIC command is that it returns a date as a long number and i want to manipulate that output</p>
  
  <p>this is the part of my script where i have this issue</p>
  
  <pre><code>:: these lines are at the top of the script
  
  SETLOCAL ENABLEEXTENSIONS
  SETLOCAL ENABLEDELAYEDEXPANSION
  
  ...
  ...
  ...
  ...
  
  :: a function:
  
  set COMM="WMIC DataFile WHERE Name='C:\\Program Files (x86)\\folder\\folder\\folder\\container.npp' Get InstallDate"
  
  set VAL=1
  
  for /f "skip=1" %%A in ('%COMM%') do (set VAL=%%A)
  echo %VAL%
  </code></pre>