what is %% means?

June 23, 2011 at 00:24:33
Specs: Windows 7
what is %% means in *.bat dos command file for the backup? such as %%f?
Thanks a lot!

See More: what is %% means?

Report •

June 23, 2011 at 03:07:55
%% followed by a character, e.g. %%f or %%A, identifies an internal variable used in for loops as

for %%f in (*.jpg) do copy %%f E:

Since in NT batch (there is no DOS in Win 7) the FOR command may be quite complex, the exact meaning of the variable depends on the script context.

Report •
Related Solutions

Ask Question