title: Windows 7 defining variable for bat files and msg command
body: <p>I have a .bat file like that:</p>
  
  <pre><code>msg userA System will be restarted
  msg userB System will be restarted
  msg userC System will be restarted
  msg userD System will be restarted
  msg userE System will be restarted
  msg userF System will be restarted
  msg userG System will be restarted
  </code></pre>
  
  <p>Can I define a variable for message part as like:</p>
  
  <pre><code>message = System will be restarted 
  msg userA message
  msg userB message
  msg userC message
  msg userD message
  msg userE message
  msg userF message
  </code></pre>
  
  <p>Also is it possible to define users as an array? As like:</p>
  
  <pre><code>users= [userA, userB, userC, userD, userE, userF]
  message = System will be restarted 
  msg users message
  </code></pre>
  
  <p>Thanks for your suggestions.</p>
  
  <p><strong>EDIT:</strong> I wrote that lines to a bat file:</p>
  
  <pre><code>set MESSAGE = System will be restarted
  msg userA %MESSAGE%
  </code></pre>
  
  <p>When I click the bat file I got that screenshot: <img src="https://i.stack.imgur.com/Oaw9p.jpg" alt="screenshot"> </p>