Skip to content

Instantly share code, notes, and snippets.

@mapfel
Created December 9, 2011 13:18
Show Gist options
  • Save mapfel/1451481 to your computer and use it in GitHub Desktop.
Save mapfel/1451481 to your computer and use it in GitHub Desktop.
Batchprogrammierung: Ja/Nein-Abfrage
ECHO Rekursiv alle Ordnerinhalte unterhalb des Content-Ordner loeschen?
SET /P X= (J)a oder (N)ein?
IF /I "%X%"=="J" GOTO :LabelDelete
GOTO :LabelCollect
:LabelDelete
ECHO OFF
DEL /S /Q *.*>NUL
ECHO Dateien geloescht.
GOTO :LabelCollect
:LabelCollect
ECHO OFF
REM going on ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment