sdieselil1
Извини, друг. Тут с проверкой.
Код:
@echo off
if "%1" == "" goto error
echo WARNING!
echo All files in %1 and subdirectories will be setted to null size.
echo Press any key if you are sured and the folder path is correct, Ctrl+C to cancel
pause
cd /d %1
attrib -r -h /s
for /r %%f in (*.*) do copy nul %%f
goto exit
:error
echo You must put path as a parameter. For example: ddr.cmd C:\Windows\Temp
echo Do NOT put anything unless you are sure.
:exit