home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CDir (Change Directory)
- Version 1.30
- 11 Feb 89
-
- Copyright (C) 1989
- Chris Brown
-
-
-
- DESCRIPTION
-
- Cdir (stands for Change Directory) is a program that allows
- you to change to a directory prior to invoking a program. It is
- primarily used in batch files, which are usually created by
- 1 2
- programs such as "Automenu" and "Hard Disk Menu" .
-
- The advantage of using a program such as this "between" the
- menu and the main program is that you don't have to have a menu
- entry on every directory you ever wish to use. Some programs let
- you change directories once it is loaded, but so far, this is the
- easiest way I have seen! In addition, this program will allow
- you to create and delete directories.
-
-
- JUST SOME STUFF
- ---------------
- Cdir was written in Turbo Pascal 5. It was tested using DOS
- 3.2 and 3.3. As I no longer have a desire to use any earlier
- versions of DOS, I can't tell you if it will work on those
- earlier versions.
-
- As far as the colors go, I'm sorry if you don't like them.
- Since the main purpose of the program is to precede another
- program, it isn't in use for very long. Because of that, I
- couldn't see making an elaborate installation program for some-
- thing like color preferences. If you really can't stand the
- colors, let me know and I will change them. If you really want
- to be bold, you could let me know what colors you think everyone
- would like.
-
- I don't know how this program will look on a monochrome
- system (I don't have access to one). If it seems that the colors
- need to be changed for monochrome, I will put a routine in to
- check for that. Just remember, I won't know unless I am told!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- --------------------
-
- 1. AUTOMENU is a Trademark of Magee Enterprises.
-
- 2. The HARD DISK MENU System and HDM are trademarks of Jim Hass.
-
-
- CDir, v1.30 - Page: 1
-
-
-
- SPECIFICS
- ---------
- As I mentioned earlier, Cdir is designed to be used in a
- batch file. The batch file is what will decided whether to
- continue on to the main file or abort back to the menu (or DOS).
- This batch file will look something like this:
-
- @Echo off
- Cdir F:\Wordstar
- If ErrorLevel 1 goto Next
- D:\Ws5\Ws
- :Next
-
- The ErrorLevel statement is there in case you press escape
- while in Cdir. This is so it will not load the next program
- (Wordstar in this case) and will continue on to the next function
- such as returning to the menu program (for which this program was
- designed).
-
- If you wanted to keep reloading Cdir to choose another
- directory and then load your main program, you have to put
- another label and another goto statement in:
-
- @Echo off
- :Again
- Cdir F:\Wordstar
- If ErrorLevel 1 goto Next
- D:\Ws5\Ws
- Goto Again
- :Next
-
- As mentioned, this example will keep reloading Cdir and then
- Wordstar until escape is pressed from within Cdir. It then will
- return to whatever (your menu or DOS).
-
-
- OPERATION
- ---------
- The basic operation of Cdir is to highlight the directory
- you want to change to, and press Enter. Cdir will return control
- back to the batch file, and your program will load with the dir-
- ectory you chose as being the current logged drive\directory.
-
- All of the operational keys for the program are highlighted
- on the screen. They really don't need too much of an explanation
- but here it is anyway:
-
-
- ^,v,PgUp,PgDn,Home,End
- ----------------------
- Moves the highlight bar up and down. Hitting enter with a
- directory highlighted will cause Cdir to change to that directory
- and then exit.
-
-
-
-
- CDir, v1.30 - Page: 2
-
-
-
- ENTER
- -----
- Press the ENTER key when you highlight the directory you wish DOS
- to be logged to. This will continue the execution of the batch
- file.
-
-
- ESCape
- ------
- Pressing ESC will abort the function of Cdir. It will not change
- the current directory in DOS and if the batch file is setup like
- the example, it will not load the next program. Instead, it will
- skip over that statement, and return control to whatever called
- the batch file.
-
-
- M - Make Directory
- ------------------
- This will make a directory under the current logged directory.
- The current logged directory is always displayed at the top left
- corner of the screen. Pressing "M" DOES NOT make a directory
- under the highlighted directory. Cdir will prompt you for a
- directory name near the bottom of the screen. ESCape can be
- pressed to abort this function. Active editing keys are: Left
- Arrow and Backspace deletes the character to the left, and Con-
- trol Y (^Y) deletes the entire input line.
-
-
- R - Remove Directory
- --------------------
- Pressing "R" will remove the highlighted directory. It will not
- remove the directory if:
- o There are files in that directory.
- o There are more directories in that directory.
- o If the highlighted directory is also the current directory in
- DOS.
- Before removing the directory, Cdir asks for conformation as to
- whether or not you really want to do this. Answer Y, N, or ESC.
-
-
- C - Change Directory
- --------------------
- This will change to the directory that is highlighted, and reread
- it's contents and display any directories that it finds. Anytime
- you are not a the root level of a directory, the first directory
- listed in Cdir is >Previous<. The purpose of this is so you can
- go through the entire directory structure simply by highlighting
- the directory and pressing "C".
-
-
- REGISTRATION
- ------------
- Cdir is distributed under the ShareWare concept. You are
- granted the right to use it for a few weeks (a few means 2) at no
- charge. If you find that after that time, you are still using
-
-
- CDir, v1.30 - Page: 3
-
-
-
- it, you will be required to register it. And registration is so
- simple: all you have to do is write me a check for $5.00. Next
- to the word MEMO on your check, write "CDir, Version 1.30". Make
- sure you name and address are correct on the check. If I write a
- major update (the first number to the left of the decimal point),
- or I find a major bug (the first number to the right of the
- decimal point) or the version you have is older than the current
- one I am distributing, I will send you an update to the address
- on the check, for free! I will not send out any updates for
- minor code changes (the second number to the right of the decimal
- point), but if they start to add up, I will upload it to GEnie.
-
- If you have comments or suggestions, please feel free to
- include them also. I am more than interested in updating things
- like this as long as they remain useful.
-
- If you just have comments or suggestions, you can mail them
- too. Or a better alternative to that is to leave me mail on
- Genie. My mailing address is:
-
- Chris Brown
- 427 14th St.
- Edwards AFB, CA 93523
-
- GEnie address: MAFMPD
-
-
- DISTRIBUTION
- ------------
- You may distribute this program as often as you wish. You
- may not, however, sell it. You may not distribute it as an
- inclusion to any other package either. If it is distributed in a
- "ShareWare House" (or something similar), no more than $5.00 may
- be charged for 'copying' it.
-
- If you give your registered copy to someone else, I remind
- you to remind them that this program is not free.
-
-
- THE BOTTOM LINE
- ---------------
- The bottom line is, if you use it please pay for it.
- Remember - "Only YOU can make ShareWare work. Please support
- it!"
-
- ARCHIVE CONTENTS
- ----------------
- The following files must be distributed as a whole. If you
- received this archive, and any of the files have a different
- time, date, name, or size, please do not distribute anymore
- copies of the version you have, and please notify me.
-
- CDIR EXE 20464 2-11-89 12:00a
- CDIR DOC 10624 2-11-89 12:00a
-
-
-
- CDir, v1.30 - Page: 4