New
#1
Need help understanding batch commands/parameters
Hello,
In this batch program (deletes temp files):
@echo off
cd %temp%
for /d %%D in (*) do rd /s /q "%%D"
del /f /q *
What does the "%%D" component signify and how is it used? Or rather, how does the "for" command work for that matter? I've looked at other explanations online and I can't seem to find a clear distinction between %%D and %D, for example.
I appreciate any input. Thanks.