Array Simulation in CLI (Windows Batch)

Just wanted to share one of things I get busy with during my free time. This is like an array or Hashtable if you prefer. Whatever. Just copy and save this a batch file (.bat) and run from CLI

@ECHO OFF

SET __TEST.FNAME=Ray
SET __TEST.MNAME=Allen
SET __TEST.LNAME=Pierce

FOR /F "tokens=2* delims=.=" %%A IN ('SET __TEST.') DO ECHO %%A = %%B


Published 08-25-2009 2:17 AM by lamia
Filed under: