title: How to create a batch file which will prompt for the User's name and password and then writes them into registry?
body: <p>Please be so kind and give me a hint for the following issue: I have to make two Windows registry string values, let say &quot;USER&quot; and &quot;PASSWORD&quot;, but from a batch file (.bat), meaning the user double clicks the batch file, &quot;TEST.BAT&quot; and then a cmd window opens, it promts the text &quot;Enter username&quot;, he types the username, after it promts &quot;Enter Password&quot; the user types his password and then the window closes.
  After successfully ran, the bach file &quot;TEST.BAT&quot; will make two Windows registry string values named &quot;USER&quot; and &quot;PASSWORD&quot; and theirs values are exactly what the user had entered at promt window.
  If I just want to make a batch file which will insert the two values I can use &quot;reg add&quot; using the following syntax:</p>
  <h3>reg add HKCU\SOFTWARE\SSIS /v USER /t REG_SZ /d &quot;JOHN&quot; /f</h3>
  <h3>reg add HKCU\SOFTWARE\SSIS /v PASSWORD/t REG_SZ /d &quot;123qwe.&quot; /f</h3>
  <p>But how can I make it one batch file which will promt the user for its username and password? (without C# console application)</p>