Running WinXP and Vista. Could someone post the batch file code that will allow just pressing the Enter key to accept the default value?
Example code:
Set /p Choice=Enter the number of copies and press Enter:
If a number is typed and user presses Enter, all is well.
But if the user just presses Enter without typing anything, the batch file closes without giving me a chance to process his action.
How can I code this so the user can just press Enter to accept the default value?
Thanks,
Sky
Example code:
Set /p Choice=Enter the number of copies and press Enter:
If a number is typed and user presses Enter, all is well.
But if the user just presses Enter without typing anything, the batch file closes without giving me a chance to process his action.
How can I code this so the user can just press Enter to accept the default value?
Thanks,
Sky