Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 68,062 of 68,980    |
|    R.Wieser to All    |
|    Re: list endpoint folders    |
|    20 May 23 11:35:43    |
      From: address@is.invalid              Tom,              > How do you operate on all folders in a tree that don't have subfolders, so       > just the endpoints?       >       > The obstacle is that if you test a folder with DIR /AD it always returns .       > and .. and never errorlevel 1.              You could try to use              for /d %%a in (%1\*) do ...              (replace the "..." with, for example, something setting a flag indicating a       subfolder was found)              Regards,       Rudy Wieser              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca