a-filelist-sorted-by-date-and-time.rex

Pipelines v2.1

 

.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10...

Home

     **** Top of file ****
   1
   2 /* The following pipeline searches for on the C drive; selecting only the first
   3    20 entries, it sorts them by the date and time and displays the result on the
   4    console. */
   5
   6 Address Rxpipe
   7
   8 'pipe (priority 2 endchar ?)',
   9      'filelist drv=c subdir',       /* Generate the list of files. */
  10      '| a: drop 1',                 /* Do not sort the header record. */
  11      '| take 20',                   /* Take only the first 20 records. */
  12      '| sort 12.10 d 23.8 d',       /* Sort on date and then time. */
  13      '| b: fanin 1 *',              /* Read header record first. */
  14      '| cons',                      /* Display on the console. */
  15      '?',
  16      'a:',
  17      '| elastic',                   /* Prevent a pipeline stall. */
  18      '| b:'                         /* Route header back to main pipeline. */
  19
  20 Say 'Hit Enter to close..'
  21 Parse Pull
  22
  23 Exit 0
     **** End of file ****
 

Example console output

 
.....|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+....10...
   1      Bytes Date       Time     NRHACTS Filename
   2      28672 2014/12/05 12:45:09 0011001 C:\Boot\BCD
   3     262144 2014/12/05 12:45:09 0011001 C:\Boot\BCD.LOG
   4      32768 2014/10/28 17:55:36 0001000 C:\$AVG\$VAULT\vault.db
   5         90 2013/09/28 20:18:45 0011000 C:\$AVG\$VAULT\vvfolder.idx
   6      65536 2010/04/04 07:22:08 0011001 C:\Boot\bootstat.dat
   7        129 2010/04/04 07:07:03 0011001 C:\$Recycle.Bin\S-1-5-21-877124041-230912013-1000\desktop.ini
   8          0 2010/03/25 04:39:40 0011000 C:\Boot\BCD.LOG1
   9          0 2010/03/25 04:39:40 0011000 C:\Boot\BCD.LOG2
  10      73216 2008/01/19 07:20:45 0001000 C:\Boot\el-GR\bootmgr.exe.mui
  11      67072 2008/01/19 07:20:39 0001000 C:\Boot\da-DK\bootmgr.exe.mui
  12      68096 2008/01/19 07:20:34 0001000 C:\Boot\fi-FI\bootmgr.exe.mui
  13      70656 2008/01/19 07:20:30 0001000 C:\Boot\de-DE\bootmgr.exe.mui
  14      68096 2008/01/19 07:19:48 0001000 C:\Boot\cs-CZ\bootmgr.exe.mui
  15      69632 2008/01/19 07:19:47 0001000 C:\Boot\es-ES\bootmgr.exe.mui
  16      66560 2008/01/19 05:27:53 0001000 C:\Boot\en-US\bootmgr.exe.mui
  17      36352 2006/11/02 12:39:49 0001000 C:\Boot\en-US\memtest.exe.mui
  18         24 2006/09/18 21:43:36 0001000 C:\autoexec.bat
  19    1984228 2006/09/18 21:28:04 0001000 C:\Boot\Fonts\jpn_boot.ttf
  20    3694080 2006/09/18 21:28:03 0001000 C:\Boot\Fonts\chs_boot.ttf
  21    3876772 2006/09/18 21:28:03 0001000 C:\Boot\Fonts\cht_boot.ttf
  22 Hit Enter to close..