{Edit} Try %comspec% instead of stipulating 'cmd.exe' or 'command.com'. And, if you put the command into a var then you can more easily troubleshoot the command if necessary.{/Edit}
code:
$shellcmd="%comspec% /q /E:1024 /C DIR $DIRLOC /AD /B /N  > $DIRLOC\HOMES.TXT"
; ? $shellcmd
shell $shellcmd



[ 15. October 2002, 16:48: Message edited by: Waltz ]
_________________________
We all live in a Yellow Subroutine...