What does /p mean in set /p?

For future reference, you can get help for any command by using the /? switch, which should explain what switches do what. According to the set /? screen, the format for set /p is SET /P variable=[promptString] which would indicate that the p in /p is “prompt.” It just prints in your example because <nul passes in a nul character which immediately ends the prompt so it … Read more