Advertisement
Guest User

SO 3.3

a guest
Oct 12th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. if not exist "%1" goto noFile
  3.  
  4. choice /C TN /M "Plik %1 zostanie skasowany. Kontynuowac "  /T 10 /D N
  5. if errorlevel==2 goto cancel
  6. if errorlevel==1 goto delete
  7.  
  8. :cancel
  9. echo Operacja anulowana
  10. goto end
  11.  
  12. :delete
  13. del %1
  14. echo Plik %1 skasowany
  15. goto end
  16.  
  17. :noFile
  18. echo plik %1 nie istnieje
  19. goto end
  20.  
  21. :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement