Page 1 of 1

LS.COM Directory Program

PostPosted: May 15th, 2020, 11:23 am
by AltairClone
While disassembling the enhanced CP/M directory program "LS.COM" to look for a way to put a space between an eight character file name and its extension, I ran into the fact the the program supports a number of command line options.

The command options are preceded by a $. For example:

A0>LS $UV

U - Show files from all user numbers
V - Verbose mode, include user number and attributes
S - Include system (hidden) files in the output
F - Show file names only (no sizes)
P - Pause and paginate output, on by default, use NP to disable
N - Negates all flags that follow

Mike

Re: LS.COM Directory Program

PostPosted: May 16th, 2020, 6:40 am
by toml_12953
AltairClone wrote:While disassembling the enhanced CP/M directory program "LS.COM" to look for a way to put a space between an eight character file name and its extension, I ran into the fact the the program supports a number of command line options.
Mike

Did you ever find a way to put in the space?

Tom L

Re: LS.COM Directory Program

PostPosted: May 16th, 2020, 10:48 am
by AltairClone
Another hobbyist pointed me to the source code for a newer version of the program that provides the extra space I wanted between the eight character file name and the extension (it actually puts in a '.' which works for me). I have posted it at the link below. The actual program name was DIRR (or DIRR7 as it is version 7). I have posted it as both DIRR7 and as LS.

The command line options are slightly different than what I show in my initial post. Type LS ? (or DIRR7 ?) to see the command line options.

https://deramp.com/downloads/misc_software/dirr-ls/