See below from XP SP3:
Mon 11/16/2009 17:11:40 Z:\>for /f "usebackq delims==" %i in ('set') do @echo %i
set
Mon 11/16/2009 17:11:45 Z:\>ver
Microsoft Windows XP [Version 5.1.2600]
The sample above needs to use the backquote instead of regular quote. for eample:
FOR /F "usebackq delims==" %i IN (`set`) DO @echo %i