Batch File Asks User for Y or N - TechRepublic
General discussion
October 1, 2006 at 10:23 PM
borginva

Batch File Asks User for Y or N

by borginva . Updated 17 years, 7 months ago

In my batch file, in the process of doing what it does, I want to have it ask the user if they want to delete all folders (under the current folder that is) that start with “bak”. So the command will delete all bak* folders if they hit Y, and if they hit N it will continue on with the rest of the script and not delete anything.
I have been searching for an hour but am tired tonight. Any ideas how I can do this? Thanks.
Oh, this batch is for 2000 and XP systems if that matters.
Thank you.

This discussion is locked

All Comments