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 40,605 of 42,547    |
|    foxidrive to E. S. Fabian    |
|    Re: For Schleife sortieren    |
|    17 Feb 13 01:41:12    |
      XPost: comp.os.msdos.4dos       From: not@this.address.invalid              On 17/02/2013 12:20 AM, E. S. Fabian wrote:       > Axel Berger:       >       > | I'm using 4DOS. Using the command       > |       > | for %a in (acc*) do type %a >> logneu.txt       > |       > | it is obvious they're executed in their natural order. If those       > | files were copied before I often hit the Windows idiosyncracy, that       > | the first in alphabetical order comes last, requiring manual       > | correction. Is there a way to make For use a predifined oder like       > | aphabetical or age?              > (WARNING! NOT TESTED!):       >       > dir /b /o:d acc* > clip:       > ( for %a in (@clip:) type %a ) > logneu.txt              This will sort by name: dir /b /o:n              The unsorted dir listings is an issue with FAT32/16/12, and NTFS sorts files       alphabetically by default.                     Another thing to watch is if acc* is a set of .txt files then make the target       file a different extension       and rename it after the command. This gets around a bug in for-in-do.                     --       foxi              --- 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