jpboyrox
Thread Starter
- Joined
- Nov 22, 2009
- Messages
- 344
I am trying to get my head round the set command, why does this not work:
If 'n' is selected it skips :y but if 'y' is selected it runs :y and then :n
Why is that and how can i sort it out?
Code:
if %delete%==y goto y
if %delete%==n goto n
:y
cls
rd /s/q FOLDER
cls
echo Files Deleted!
pause
:n
cls
echo Files not deleted
pause
Why is that and how can i sort it out?