title: how do i use variables in the ping command (batch)
body: <p>I am trying to make a batch file where the user inputs a specific site and the file pings it.</p>
  <pre><code>@echo off
  set /p id=&quot;Select the site you would like to ping: &quot;
  echo Pinging site...
  ping &amp;id&amp;
  pause
  </code></pre>