title: How can I make an "are you sure" prompt in a Windows batch file?
body: <p>I have a batch file that automates copying a bunch of files from one place to the other and back for me. Only thing is as much as it helps me I keep accidentally selecting that command off my command buffer and mass overwriting uncommitted changes.</p>
  <p>What code would I need for my .bat file to make it output &quot;<strong>Are you sure?</strong>&quot;, and make me type <kbd>Y</kbd> before it ran the rest of the file?</p>
  <p>If anything other than <kbd>Y</kbd> is typed, it should exit execution on that line.</p>
  <p>When I call <code>exit</code>, it closes <code>cmd.exe</code> which is not what I want.</p>