Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :start
- if "%1" == "" goto end
- if "%1" == "/?" goto help
- if "%1" == "/t" goto create
- if "%1" == "/u" goto remove
- shift
- goto start
- :create
- shift
- if "%1" == "" goto end
- if exist %1 goto crtExst
- if not exist %1 goto crtNotExst
- :crtExst
- echo Folder [%1] Istnieje
- goto create
- :crtNotExst
- echo Tworzenie folderu [%1]
- md %1
- goto create
- :remove
- shift
- if "%1" == "" goto end
- if not exist "%1" goto rmNotExst
- echo Usuwanie folderu [%1]
- rd /S /Q %1
- goto remove
- :rmNotExst
- echo Folder [%1] nie istnieje
- goto remove
- :help
- echo ===================================================
- echo === Uzycie: ===
- echo === /t [lista folderow] tworzy podane foldery ===
- echo === /u [lista folderow] usuwa podane foldery ===
- echo ===================================================
- :end
- echo koniec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement