home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
JCD10.ZIP
/
JCD.TXT
< prev
next >
Wrap
Text File
|
1990-04-29
|
4KB
|
120 lines
JCD, an improved change directory for OS/2
License
-------
This program is a freeware product. You can freely copy
and distribute it as long as you don't make any changes to
the original package.
Author
------
Joel Armengaud E-Mail until 6/26/90:
Le Grand Lot <Armengau@FRECP12.Bitnet>
13720 Belcodene After 6/26/90:
FRANCE <MPI@FRMOP11.Bitnet>
Description
-----------
JCD is an improved change directory utility for OS/2.
It allows you to change both the directory and current drive
in an OS/2 session, full screen or windowed.
Imagine your are in C:\OS2\INSTALL and want to go to
D:\PRODUCTS\UTILIT, just type "jcd utilit" :
C:\OS2\INSTALL> jcd utilit
D:\PRODUCTS\UTILIT>
Another feature of jcd is that it changes to the
directory that best matches the name you typed. For instance
you can type "jcd util", or "jcd til", or even "jcd utlit".
If you have several directories that matches the name, you
just have to retype the previous jcd command to switch to
the next directory, in a round-robin fashion.
Jcd currently doesn't accept HPFS long names.
Jcd won't allow you to change the directory on drives A: and
B:
How JCD works.
--------------
The problem with OS/2 is that each process has its own
environment. An .exe program cannot change the current
drive/directory of a parent process.
The only way I know to change the directory (without
rewriting CMD.EXE!) is using a .CMD with the call statement.
That's why Jcd makes a temporary file.
However unlike Norton's NCD utility, JCD doesn't use a
file to store the complete directory structure of all disks.
Instead Jcd uses a background task as a server. The server,
jcd2.exe, stores the directory trees in memory. Usually it
won't consume more than 10 or 20Kb.
How does the jcd server update changes in directory
structures ? Jcd2 periodically rescans the disks. During
jcd2 rescanning, the jcd command won't work (you'll get the
message "Jcd server rescanning disks...try later"). The
delay between rescans is a parameter of the jcd2 command
line. Since it can be time-consuming, jcd2 rescans using an
idle-time priority level, so it won't slow any other running
applications.
If Jcd2 tries to go into a directory that has just been
removed, it rescans the disks immediately. If you want to
force a rescan, just type :
JCD /r
Installation
------------
The jcd package comes with 4 files:
jcd.cmd
jcd1.exe
jcd2.exe
jcd.doc
just copy the .cmd and .exe files in a directory in
your path statement.
The jcd2 server should be run only once, as a
background task. You can for instance put it in your
startup.cmd file with a start= or detach= statement, or even
at the end of your config.sys file, with a RUN= statement.
Jcd2 accepts 3 options in the command line :
/R n rescan every n minutes (default: 60)
/H rescan with a regular priority (default:
idle-time)
/D x put temporary file in root directory of
logical drive x (default: /D C)
If you use the /D switch, you also have to edit the
file jcd.cmd, and change the fourth line:
@call C:\jcd-file.cmd
to:
@call x:\jcd-file.cmd
where x is the drive letter you have used with /D.
If you find Jcd too slow, there are two ways to
accelerate it:
1) Modify your path statement so that the directory
where the jcd files are appears in first position.
2) Use the /D switch with an HPFS or a virtual disk.