Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,082 of 42,547    |
|    foxidrive to Marcel Verduyn    |
|    Re: finding out length of directories    |
|    20 Jan 15 00:20:47    |
      From: foxidrive@server.invalid              On 19/01/2015 23:27, Marcel Verduyn wrote:       > I've been checking DIR/? and I do not yet see how to find out which are the       longest paths...       > Help much appreciated.       > Marcel       >              You can try this if DIR returns an errorlevel.              You will not see any output until the pause appears at the end, and check your       desktop for a log.txt       file.                     @echo off       for /d /r "c:\" %%a in (*) do (        dir "%%a" /b /-p >nul 2>&1 || (echo failed: "%%a">>"%userprof       le%\desktop\log.txt")       )       pause              --- 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