


                                   C2DD 1.0
                      Change to Drive/Directory and Back
                   Copyright (c) 1995 by David M. Wincelberg


                               Table of Contents

       I.   Introduction ............................................  1
       II.  How to Use ..............................................  1

       Appendices:

       A.   Command Line Switches ...................................  3
       B.   Troubleshooting .........................................  4
       C.   Other FileJockey Software Products ......................  4
       D.   License Agreement .......................................  6


       I.   Introduction

       Thank you for trying C2DD.  This program changes the current
       drive/directory to a specified pair and records path information
       for moving back to any of several previous drive/directories.  It
       can move back one pair at a time or present a graphical pick
       list.  C2DD can be used with any DOS directory navigator and is
       useful for returning to the starting drive/directory in batch
       (.BAT) files.

            C2DD is a free program.  Please consider the FileJockey
       Software shareware products described in Appendix C.

            This program is safe to run on a Pentium processor since it
       does not perform any floating point divisions of large numbers.
       In addition, FileJockey Software does not release products with
       known bugs.

            Please send comments, suggestions and problem reports to me
       at 71573,1023 by CompuServe e-mail or 71573.1023@compuserve.com
       by Internet e-mail.

            C2DD requires DOS 2.1 or later and a hard disk labeled C:.


       II.  How to Use

       II.A.  Installing onto Disk

       Make a temporary directory such as C:\C2DD and unzip C2DD.ZIP
       into this directory.  Then move C2DD.EXE to a directory on your
       path such as C:\UTIL and move C2DD.TXT and C2DD.ZIP to a
       documentation directory such as C:\UTIL\DOCS.  After reviewing




       the other files, you may delete them and remove the temporary
       directory.


       II.B.  Using the Program as C2DD

       Once C2DD.EXE is in a directory on your path, enter

                            C2DD [drive:]directory

       to change the current drive/directory to the pair specified on
       the command line.  Unlike DOS CD, the current drive is changed if
       a different one is included in the command.

            The primary benefit of using C2DD is that C2DD/B results in
       the current drive/directory being changed to the previous one.
       Consider the following batch (.BAT) program:

                                C2DD C:\WP60
                                WP %1 %2
                                C2DD /B

       In this program, the current drive/directory is changed to a
       program directory, the program is run and the current drive/
       directory is reset to the starting pair.  With this type of batch
       program, programs that need to be run from a specified directory
       can do so and then the user can resume work in the previous
       directory.  (Note that WordPerfect for DOS does not necessarily
       need to run from its directory and that the parameters %1 and %2
       cannot refer to files in the previous drive/directory.)

            C2DD can also call another program to do the drive/directory
       changing and can present a graphical pick list containing the
       last several (up to 23) drive/directories C2DD changed to.  See
       Appendix A for more information.


       II.C.  Using the Program as CD

       To use C2DD as CD, you need to install a DOS-command-history
       program such as DOSKEY (DOS 5.0 or later) or CED and define a
       macro or synonym that substitutes C2DD for CD.  For DOSKEY, the
       command is:

                               DOSKEY CD=C2DD $*

       For CED, the command is:

                             CED SYN CD C2DD %1 %2

       To remove this substitution, enter:



                                    Page 2




                                  DOSKEY CD=

       or:

                               CED CLEAR SYN CD

       respectively.  Note that you cannot use macros or substitutions
       in a batch (.BAT) program.  Neither command-history program
       appears to have an option to remove itself from memory.

            If you do use a DOS-command-history program, you can save
       disk space by making small batch programs into macros or
       synonyms.  For example, the above program becomes:

                   DOSKEY WP=C2DD C:\WP60 $T WP $* $T C2DD/B

       or:

                  CED SYN WP C2DD C:\WP60 ^ WP %1 %2 ^ C2DD/B

       Doing so saves more than just the space shown in the DOS
       directory since files use an whole number of clusters where each
       cluster could be from 2 to 32 kilobytes in size, depending on the
       size of the current disk partition.  (See PC/Computing, June
       1995, p. 196.)


       Appendices

       A.   Command Line Switches

       Entering
                                    C2DD /?

       produces the following summary of command line switches or
       options:

       Usage: C2DD [/C:prog] {path | /A | /B | /S}

       path      Change to this drive and directory; store current path
       /C:prog   Use 'prog' to switch to 'path'
       /A        Add current path to the data file
       /B        Move back to the previous drive/directory
       /S        Select a previous drive/directory from a list

            The /C option allows you to use another program to switch
       the current drive/directory to a desired pair.  The advantage of
       doing so is that directory-navigator programs such as NCD and DM
       allow you to enter just the first few letters of a directory
       name.  In contrast, C2DD requires path names in the form that DOS



                                    Page 3




       uses -- full or relative with the complete names written out.
       Alternatively, you could use a directory-navigator program as you
       currently do and then enter C2DD/A to add the current drive/
       directory to C2DD's retrace file (C:\C2DD.DAT).

            The /B option changes the current drive/directory to the
       previous one in the retrace file.  Entering C2DD/B when this file
       points to the last one on the list results in the program
       selecting the first pair on the list.

            Finally, the C2DD/S displays a graphical pick list on the
       screen.  Navigate through this list by using up and down arrow
       keys as well as the <Home> and <End> keys.  Press <Enter> to
       select a pair or <Esc> to cancel.


       B.   Troubleshooting

       Error in header of C:\C2DD.DAT:

       The header line of C:\C2DD.DAT consists of the number of drive/
       directories stored in the file (up to 23) and the index of the
       current one for moving back one pair at a time.  If this file is
       edited, make sure that the numbers on the first line are accurate
       and separated by a space.  The second number may be set to 1.
       Alternatively, you may delete C:\C2DD.DAT if you don't mind
       losing its drive/directory information.


       C.   Other FileJockey Software Products

       Following is a list of current FileJockey Software products.  All
       of the compressed files for these products have extension ZIP.
       In parentheses after the descriptions are the locations where the
       programs may be found on CompuServe and the registration/license
       fees.


       C.1.  System Tools

       WRDGRB 1.1 -- Copies Words From DOS Screen to Command Line:

       No more typing words you see on the DOS screen!  With WRDGRB
       installed, you simply press the hot-key sequence, highlight text
       with your mouse, and left click to copy it to the command line
       (or right click to cancel).  WRDGRB even connects a filename to
       its extension when both are highlighted in a directory listing.
       New: smaller by 19K, a default-values file, and more.  23K TSR.
       No known bugs.  GO SWREG (#5571) to register on-line.  (GO
       PCUTIL, Library 3, $35)




                                    Page 4




       LISTRS 1.2 -- Directory/Program List Makers With Action Options:

       DIRLIST: More accurate than "dir *."  Options include show files,
       change to and remove directory.  PROGLIST: Shows a directory's
       .EXE, .COM and .BAT files in one listing to help users find the
       name of the program file to run.  Options include type & run,
       type & wait and edit .BAT files with a user-selected editor.
       Both programs correctly sort numbers within filenames.  No known
       bugs.  (GO PCUTIL, Library 5, $15)


       C.2.  Programmer Tools

       SRLIB 1.1 -- LIB: Alphanumeric Filename Sorting:

       SRLIB is a set of library routines to sort filenames
       alphanumerically.  For example, it places FILE_2 before FILE_10
       and can handle long file names, leading zeros and spaces.  SRLIB
       is compiled for Microsoft C/C++'s and Borland TC++'s small and
       large memory models.  (See SRDEMO in MSLANG, Lib. 3.)  New: case-
       insensitive routine, 3rd space-handling option, commas-within-
       numbers handling, and more.  SRDEMO.C, included in SRLIB.ZIP,
       reads a directory once even for an unknown number of files.  GO
       SWREG (#5947) to purchase SRLIB on-line.  Site licenses and
       source code are available.  No known bugs.  ($24 plus $1 S/H (by
       e-mail) or $24 plus CA tax plus $4 S/H (by disk))


       PROGCR 1.0 -- Prepares Programs for Copyrighting:

       Protects the privacy of your C/C++ or PASCAL source code
       copyright deposit by removing comments after each file's header
       (which should primarily consist of your copyright notice) from
       copies of the original files.  Also, copies words displayed by
       standard or user-specified print commands to a file for spell
       checking.  (GO PCPROG, Library 6, $10)


       C.3.  BBS-Session Tools

       CFWRAP 1.1 -- Word Wrapping Tuned for BBS Capture Files:

       Prepares BBS capture files for editing by removing page pause
       lines ("Press <CR> for more !", etc.) and word-wrapping various
       types of paragraphs (including each line starting with ">>" and
       indented paragraphs).  Many page pause lines are in a user-
       changeable .INI file.  Version 1.1 improvements include multi-BBS
       support and better word wrapping.  (GO PCCOM, Library 2, $15)





                                    Page 5




       FRMDSK 1.0 -- Enters Text From Disk With Line Preview & Edit:

       Use FRMDSK when a BBS requires you to type in lines instead of
       allowing you to upload a file.  It copies lines from a file to
       your BBS software (or other program) after giving you options.
       These options include edit line, finish file, wait, cancel,
       next/previous line and another file.  Works only with DOS text
       programs that read the keyboard in the standard way.  66K TSR.
       (GO PCCOM, Library 2, $15)


       D.   License Agreement

       This is a legal agreement between you ("Licensee") and FileJockey
       Software ("Licensor").  Licensor owns all worldwide rights,
       title, copyright and other interests in and to the computer
       program identified as C2DD 1.0 ("Software").  By using the
       Software, you are agreeing to be bound by the following terms:

       1.   Licensor grants to Licensee the non-exclusive and non-
       assignable right to use the Software without paying a fee to
       Licensor.

       2.   Licensee may distribute copies of the Software and related
       files to others provided Licensee informs the recipients that the
       Software is subject to a license agreement.  The attached
       VENDINFO data record is hereby incorporated by reference.  Any
       distribution satisfying all the distribution requirements
       expressed in that data record is hereby authorized.

       3.   Licensor hereby alerts Licensee that the Software and
       accompanying documentation are provided "AS IS" without warranty
       of any kind.  Licensee assumes all risks involving use of the
       Software and its results and performance.

       4.   Licensee hereby acknowledges that Licensor bears no
       responsibility or liability which may arise or result from
       Licensee's use of the Software.  Licensee hereby waives and
       releases Licensor from any and all claims for damages, losses and
       costs therefrom.  In no event shall Licensor's liability for any
       damages ever exceed the price paid for license and registration,
       regardless of the form of the claim.

       5.   This license agreement shall be construed and enforced in
       accordance with the laws of the State of California.  This
       agreement may not be modified except by written instrument signed
       by both parties.  If any provisions of this agreement are found
       to be invalid or unenforceable by the operation of the law, then
       invalidity or unenforceability of such provision(s) shall not
       affect the validity or enforceability of the other provisions of
       this agreement.  Any dispute arising from this agreement shall be



                                    Page 6




       submitted to California courts located in Los Angeles County, and
       Licensee hereby submits to the jurisdiction of such courts.


       All (registered) trademarks and (registered) service marks are
       properties of their respective companies.
















































                                    Page 7

