Incode Systems Home Page Incode Systems, Inc.


BD



(04-12-2004 2:41pm BD.EXE)

BD (Browse Directory) (Version 4.0 Release date 4/12/2004 2:41pm)
Clipboard tool for directories

Browse Directory opens a Browse for Folder dialog from which the user may select a directory.

Pressing the OK button puts the following on the clipboard:


C:
CD "C:\SelectedDirectory"

Where C: is the drive of the selected directory and C:\SelectedDirectory is the fully qualified path of the selected directory.

Applications

BD was primarily designed as an assist when using the command prompt. Long directory names make changing directories from a command prompt difficult.

To change directories from a command prompt using BD:

Type BD and press enter at the command prompt.

Select the directory you want from the open file dialog and press the Cancel button.

Paste the clipboard to the command prompt. In Windows 95-98 you can activate the paste button on the tool bar of the command prompt window. In Windows NT, you can do Alt-Space, E, P.

Usage: [-option1] [/option2] [FileName]

Options:

-ShortName (or -S) Returns the short version of the file name.

-N No CD added. This is used to put the path name alone on the clipboard.

-T Title. Default title is "Select Directory". Examples: -TMyPathTitle -T"My Path Title"

-? Display help file.

If FileName is supplied on the command line, output is written to file specified. If the file specified already exists, it is appended. If the user cancels, the file is not created or appended. This option is useful to allow a user to select a working directory from a batch file.

Example:

IF EXIST $SELDIR.bat DEL $SELDIR.bat

BD $SELDIR.bat
IF NOT EXIST $SELDIR.bat GOTO END
CALL $SELDIR.bat
DEL $SELDIR.bat
REM Do processing here...
:END

In the batch file above, a temporary file named $SELDIR.bat is created by BD which may be called from the batch to change working directories.