Directory Change (dc)

PillarSoft Utilities, Copyright 2003, PillarSoft

 


Description

Simple directory change utility that works from user defined aliases. Users may add an alias from the directory of choice by calling dc from within a directory and setting it's alias at the program prompt.

 

Syntax

Change directories:
  dc alias

Add a new (the current) directory to the database:

  dc add

 

Parameters

Parameter
Data Type
Purpose
Value
Default
Required
alias string Alias name listed in the program database. N/A N/A Yes if add is not used.
add string Add the current directory to the database. ADD Current directory, user is prompted for alias Yes if alias is not used.

 

Notes

  1. When adding a new directory, the alias will be paired with the directory dc is called from. The user will also be prompted for input.
  2. dc will check for duplicates when adding directories to the database. If the current directory is already listed, it will notify and exit. If the alias selected is a duplicate, it will warn the user and offer a chance to select a new one.

Building Your DataBase

Suppose you want to add the following alias/directory combinations to your database:

Alias Directory
apps c:\bin\apps
mp3 m:\sound\mp3

To access these directories after adding them to your database just type:

 

Example(s)

Change to C:\os2\dll using it's preset dll alias.
  dc dll

Change to H:\prog\java\projects\jTest using it's preset jTest alias.
  dc jTest

Adding the current directory [h:\prog\rexx]
  dc add
dc will show the current dir and prompt for an alias:
  h:\prog\rexx
  
  Enter alias: _
User will enter Rexx for example and hit Enter.
 


Copyright 2001 - 2003, PillarSoft
All Rights Reserved