Monday, November 20, 2006 6:30 AM
bart
Quiz: Batch scripting mysteries
Can you predict what the following piece of batch script will produce (and why)? Tip: run it more than one time.
@echo off
for %%f in (a,b,c) do (
echo 1 %%f 2
set x=x1 %%f x2
echo %x%
)
Source: question at the TechEd 2006 IT Forum ATE.