windowsbatch-filecmdwindows-xp

Windows batch choice command for Windows XP & 2003


Is there a way to prompt users for input (ie: Yes/No) from a Windows batch script that works on XP and Windows 2003 server? It seems some commands (ie: choice) only work on one OS and not others.


Solution

  • Use the SET command with the /P switch.