BATCH not listing full directory list

Microsoft Windows xp professional w/serv...
April 1, 2010 at 13:32:33
Specs: Windows XP
I cannot get the FULL list to echo out...I only get the LAST directory in the network drive....where did I go wrong?!?!

---------------
echo off
setlocal
PUSHD S:
FOR /F "tokens=*" %%a IN ('dir /b /ad') DO SET toplvl=%%a
echo !toplvl!
PAUSE
ENDLOCAL


See More: BATCH not listing full directory list

Report •


#1
April 1, 2010 at 13:37:23
...would all of you great minds....say that I am missing ()......i will try that next

Report •

#2
April 1, 2010 at 13:39:42
Yea....that did it..I am retarded...thanks for letting me look just a little longer.....wipppppeeee

Report •
Related Solutions


Ask Question