title: Syntax error in a batch script when asking for user input (/P)
body: <p>I've asked a couple of people what the issue is, and have walked away twice without a solution. I haven't played with batch much before, so it may be a simple mistake. The code is currently supposed to give a list of processes using wmic. Eventually, I'd like to set it up to kill processes (which I should be able to do fairly easily), but I have to get over this roadblock first.</p>
  
  <pre><code>@echo off
  set getprocesslistlocal=wmic process get name,processid
  set /P remotemachinecheck=Type the name of the remote machine to view processes of (or type local for local machine), and press Enter.
  if %remotemachinecheck%==local
  (
  %getprocesslistlocal%
  ) else (
  set remotemachine=%remotemachinecheck%
  set /P remoteuser=Type the user name to access %remotemachine% with, then press Enter.
  set /P remotepassword=[Type the password for %remoteuser% on %remotemachine%, then press Enter. Watch your back, it won't be hidden!
  set getprocesslistremote=wmic /node %remotemachine% /user:%remoteuser% /password:%remotepass% process get name,processid
  %getprocesslistremote%
  )
  echo End of list. Press any key to choose process to kill.
  @echo off
  pause&gt;null
  </code></pre>