Welcome, Guest. Please login or register.

Author Topic: List contents of a drawer in alphabetical order?  (Read 1943 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Franko

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 5707
    • Show all replies
Re: List contents of a drawer in alphabetical order?
« on: May 25, 2011, 12:17:10 PM »
@ Robert17

Here's quite a flexible way to create alphabetical lists of your dirs/drawers into a plain textfile... :)

Here's what you need to do to create a plain text file in RAM: called FileList with the contents of drawer sorted for you in alphabetical order... :)

List SORT=N PAT=~(#?.info) FILES LFORMAT "%p%n" To RAM:Filelist

NOTE: the "~" is typed by holding down shift and pressing the large key just below ESC on the Amiga keyboard.... :)

The above example will not include files ending with ".info:" if you wish to include these in your list then just remove the "PAT=~(#?.info)" bit... :)

You can muck about with the above line to just list dirs/ drawers alphabetically or any other combination you choose, just type List ? (return) to see all the options... :)

Sorry... forgot to mention... make sure you CD the dir/drawer you want to create a list of... :)
« Last Edit: May 25, 2011, 12:26:09 PM by Franko »