Subj : Batch File... To : Shurato From : Shurato Date : Fri Oct 25 2024 15:21:00 Sh> What's wrong with this batch file? It only appears to grab the first Sh> directory, instead of all subdirs. Sometimes it doesn't even do that.. f Sh> for %%i in (*.) DO ( cd %%i del shortlist.bbs for %%j in (*.zip) Sh> DO ( pkunzip -o %%j file_id.diz %temp% set /p Sh> output=<%temp%\file_id.diz echo %%j %output%>>shortlist.bbs Sh> ) cd .. ) Sh> I'm sure I missed something obvious, but I can't figure it out. Can I not Sh> nest for do loops? This is to grab the first line of file_id.diz files, Sh> put the filename a few spaces, then the description into a file for Sh> my ftp server to display descriptions. pkunzip and set are working. Sh> It's not looping though. It's not doing subdirs, so maybe I should remove that part and do it manually in each directory... There are several score of them... -- Shurato, Sysop Shurato's Heavenly Sphere (ssh, telnet, pop3, ftp,nntp, ,wss) (Ports 22,23,110,21,119,8080) (ssh login 'bbs' pass 'shsbbs'). *** THE READER V4.50 [freeware] --- * Origin: Shurato's Heavenly Sphere telnet://shsbbs.net (618:300/50) .