Obsolete!!! Fucking old examples...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

28 lines
580 B

@echo off
rem ****************************
rem Ñöåíàðèé: cleardir.bat
rem Äàòà ñîçäàíèÿ 10/24/2008
rem Ïîñëåäíåå èçìåíåíèå: 10/24/2008
rem Àâòîð: Øàøêèí Í. Ñ. kolan klmn
rem E-mail: xalava@bk.ru
rem ****************************
rem Îïèñàíèå: î÷èùàåò âûáðàííóþ
rem äèðåêòîðèþ, íå óäàëÿÿ å¸ ñàìó
rem ****************************
rem Ôàéëû: òðåáîâàíèÿ ñêðîìíûå
rem ****************************
if '%1'=='' (
del /q *
for /d %%i in (*) do (
rmdir /s /q "%%i"
)
)else (
del /q %1\*
for /d %%i in (%1\*) do (
echo %1\%%i
rmdir /s /q "%%i"
)
)