
Hi.

If you have been using both Linux/umsdos and MS-DOS, you will have
had trouble with navigation in ums-directories and the manipulation
of umsfiles. 

I cobbled together a few small programs that should at least alleviate
this problem: udir, ucd and ucat. You can compile them with the Borland
C++ compiler, but the binaries are included.

'udir' lists a mapping from the MS-DOS files into the umsdos names.
'ucd'  allows a 'change directory' using the original umsdos name.
'ucat' displays the contents of a textfile, using the umsdos name.

These programs will only work on filenames and directories that are
under umsdos different from the ms-dos entries. For names that are
identical the normal ms-dos commands can be used.

-------------------------------------------

To be able to use 'ucd' and 'ucat' you must first have done the
following: 

Use 'udir' to make a mapfile. This mapfile should be named
'descript.ion' and contain the ms-dos accolade'd name followed by a
space and the long umsdos name. If you use 4DOS as a command interpreter
this will allow you to see both names doing 'dir'. Also, 4DOS will keep
this 'description' when copying, moving etc. As long as the umsdos-name
is the first word after the original filename in the descript.ion file,
it will work. 

C:\>udir > descript.ion

or

C:\>udir >> descript.ion

if you already have a description-file, but be sure to edit double
entries! 

Now you can use 'ucd Long.Name.with.CAPS' in stead of 'cd long_nam.{_3'
for directories or 'ucat Long.Name.With.CAPS' if it is a textfile.

'udir' has an option, -m umsname, that returns the corresponding MS-DOS
name, if any. I do not know much of 4DOS shell programming, but perhaps
this can be used in 4DOS scripts.
 
------------------------------------

BUGS: I have been to lazy to implement names with more than 32
characters, although that should be trivial. There will be other bugs;
you may find them or not, as the case may be.

COPYLEFT: Gnu.

Let me know if you use these programs & find them useful.

Hans Paijmans

paai@kub.nl




