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.
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.
My Computer
- Computer type
- PC/Desktop
- OS
- Windows 7 64-bit