FloppySoftware
Member
Hello CP/M people!
I recently introduce myself in this forum, as a CP/M fan.
I like to start my posts here, asking a question that it's in my
head for the last weeks.
¿It's posible to emulate a directory tree in CP/M?
I'm working in that subject in order to build a "layer" between programs
and BDOS, and it not seems very dificult to do it with a simplified directory tree.
We have 16 user areas, and we can have 16 directories with a name.
We can connect (link) that user areas building an emulated directory tree, for
example:
C:/ (root - user 0)
|
+--- CC (user 1)--+--- LIB (user 2)
| |
| +--- EXAMPLES (user 4)
+--- WORDSTAR (user 5)
|
+--- SUPERCALC (user 6)
User areas 7 to 15 are available.
A more simple idea can be a root with 15 subdirectories:
C:/ (root - user 0)
|
+---- WORDSTAR (user 1)
|
+---- SUPERCALC (user 2)
|
+---- BACKUP (user 3)
Users 4 to 15 are available.
Or, a more simple idea is build 16 directories with no root.
If we have a root directory, we can have files and subdirectories (user areas) in it,
but it's more dificult to do (but I like it).
We can have a "path search" to execute commands (similar to setdef facility with drives), etc.
We can have some utilities as chdir, tree, rendir, etc.
The names for subdirectories can be in a configuration file, and standard CP/M
BDOS and programs will not know nothing about that subject (no compatibility
problems).
It can be done as a RSX, for example, with new BDOS functions that convert
new path files to older doing:
- Save current user.
- Set new user (directory in path)
- Do standard BDOS file function.
- Set old user.
A:/>TYPE C:/MYDOCS/APRIL.TXT
Look nice, it's'nt?
Yours,
Mike
I recently introduce myself in this forum, as a CP/M fan.
I like to start my posts here, asking a question that it's in my
head for the last weeks.
¿It's posible to emulate a directory tree in CP/M?
I'm working in that subject in order to build a "layer" between programs
and BDOS, and it not seems very dificult to do it with a simplified directory tree.
We have 16 user areas, and we can have 16 directories with a name.
We can connect (link) that user areas building an emulated directory tree, for
example:
C:/ (root - user 0)
|
+--- CC (user 1)--+--- LIB (user 2)
| |
| +--- EXAMPLES (user 4)
+--- WORDSTAR (user 5)
|
+--- SUPERCALC (user 6)
User areas 7 to 15 are available.
A more simple idea can be a root with 15 subdirectories:
C:/ (root - user 0)
|
+---- WORDSTAR (user 1)
|
+---- SUPERCALC (user 2)
|
+---- BACKUP (user 3)
Users 4 to 15 are available.
Or, a more simple idea is build 16 directories with no root.
If we have a root directory, we can have files and subdirectories (user areas) in it,
but it's more dificult to do (but I like it).
We can have a "path search" to execute commands (similar to setdef facility with drives), etc.
We can have some utilities as chdir, tree, rendir, etc.
The names for subdirectories can be in a configuration file, and standard CP/M
BDOS and programs will not know nothing about that subject (no compatibility
problems).
It can be done as a RSX, for example, with new BDOS functions that convert
new path files to older doing:
- Save current user.
- Set new user (directory in path)
- Do standard BDOS file function.
- Set old user.
A:/>TYPE C:/MYDOCS/APRIL.TXT
Look nice, it's'nt?
Yours,
Mike