@echo off
set /p num="Enter Number: "
set /a numberinput = num %% 2
if %numberinput% equ 1 (
dir C:\ /a /b /-p /o:gen >C:\Users\"Your PC Username"\Desktop\bsit\dir.txt
start notepad C:\Users\"Your PC Username"\Desktop\bsit\dir.txt
) else (
@RD /S /Q "Z:\Final"
)
pause
34RYzYMm74oRxHak5dPptSLQ2J3LSnKV32
Hope that I answered it correctly. I'm not very familiar to batch file so i'm not sure if it is what you want. Goodluck!