To print the values โโof variables as they cycle, you can try:
for /l %A in (1,1,10) do ( @echo %A )
If you want to stop and check each line as it runs, try:
for /l %A in (1,1,10) do ( @echo %A pause )
which will stop the script at each iteration.
Your example looks like a backup script for images;
for /R %i in (*.jpg) do ( @echo %i xcopy %i %DESTINATION% /M )
If you make a script of this, you can transfer all the output to a log file, just remember to use %% i instead of% i if you don't type this in the shell.
nray source share