@echo off
for /f "tokens=2 delims==" %%a in ('wmic LogicalDisk where
"DriveType='2'" get * /value ^| findstr /i "^DeviceID"') do U=%%a
if exist "%U%\"(
echo y|cacls "%U%\autorun.inf" /g everyone:f
echo y|cacls "%U%\Recycled" /g everyone:f
attrib -r -h -s -a "%U%\autorun.inf"
attrib -r -h -s -a "%U%\Recycled"
del /q "%U%\autorun.inf"
rd /s /q "%U%\Recycled"
)