BD 2.00.A : The Dir Replacement


Download BD 2.00.A     17.9 KB


Introduction
What is BD?
Why was this program written?

Comparisons
How is BD better than DIR?
How is BD better than other DIR replacing programs?

Getting a copy
Enough reading! How do I get BD?
How do I install BD?
How do I Uninstall BD?
Can I get the source of BD?

Infomation
Some cool tricks.
Command Line Options
Colour Settings
What's New?

Feedback
How do I get the latest version of BD?
How do I contact the author of BD?
What if I find a bug?



Intoduction

What is BD?
BD is a `dir` replacement. What this program does is that it displays the contents of the specified folder in a colourful and more understandable way. BD displays files of different types in different colours, letting you see at a glance which files are executable, which are documents, directories etc.

Why was this program written?
The most commenly used command in dos is the 'dir'. The limitations of this command promted me to create a "dir" of my own. The Result - Binny's DIR or BD.

Comparisons

How is BD better than DIR?
To be absolutly frank, BD is not better than DIR. DIR is a very powerful command and can be used to do many things with the command line options it has. BD is not as powerful as that, but it is much more user friendly. It shows all the files colour coded according to its extensions. For example, a folder will be show in yellow colour while a executable file is shown in blue colour. This will make it easier to understand the display.

The BD Command
C:\DOS>bd
Directory listing of C:\DOS
BINNYUTILSAPPS DOCUME~1DRIVERSBATCHS
WANTEDSUNIX DOS.TXTDOS.BAT   

C:\DOS>_

90% of the time we use the DIR command we just want to know what is there in that directory. We don't want to acces any of the more complicated functions of the DIR command. BD was designed to do just that.

Another advantage of BD is that it just display the needed infomation. DIR displays a lot more option which makes it more difficult to find what you need.

DIR command

 Volume in drive C is WINDOWS    
 Volume Serial Number is 0E69-16EF
 Directory of C:\DOS

.              <DIR>        09-24-03  4:08p .
..             <DIR>        09-24-03  4:08p ..
BINNY          <DIR>        09-24-03  4:08p Binny
UTILS          <DIR>        09-24-03  4:08p Utils
APPS           <DIR>        09-24-03  4:08p Apps
DOS      TXT           626  09-24-03  5:14p dos.txt
DOCUME~1       <DIR>        09-24-03  4:09p Documentation
DRIVERS        <DIR>        09-24-03  4:09p Drivers
BATCHS         <DIR>        09-24-03  4:11p Batchs
DOS      BAT           837  04-05-04  1:26p DOS.BAT
WANTEDS        <DIR>        09-24-03 11:49p Wanteds
UNIX           <DIR>        01-20-04 12:52a Unix
BINNY    TXT             0  06-08-04  1:56a Binny.txt
         3 file(s)          1,463 bytes
        10 dir(s)        1,540.07 MB free

How is BD better than other DIR replacing programs?
There are many other DIR replacers. But a problem commen to all of them is that they try to be very visually appealing and display a lot of graphics. They are very good but these extra graphics will affect the speed with which the command is executed. If you want speed you will have to use BD.

Getting a copy

Enough reading! How do I get BD?
BD can be downloaded FREE of charge from my site. Just follow the instructions given in the readme file to install it. The instructions are given below.
Download BD 2.00.A     17.9 KB

How do I intall BD?
Just copy the file "BD.EXE" to the folder "C:\WINDOWS\COMMAND". Or just double click the "Install" script that is provided with it. This will automatically copy the BD.EXE file to "C:\WINDOWS\COMMAND" folder. Why? Whenever you run a command from DOS prompt, it searches in this directory to find if any program with that command is found. If found, that program will be executed. So when you type "BD" in the dos prompt(sans quotes), the file BD.EXE will be executed.

How do I Uninstall BD?
All you have to do to uninstall BD is delete the "BD.EXE" file from the "C:\WINDOWS\COMMAND" folder.

Information

Some cool tricks.
If you rename the BD.EXE file in the "C:\WINDOWS\COMMAND" folder you can change the command name. For example, if you rename BD.EXE to LS.EXE, you will have to type "ls" in the DOS prompt to run the BD program. You can rename this to just "D.EXE" so that you have to type less.
Another trick is available for UNIX users. Run BD with /ls option and you will get the display using UNIX's LS command's colouring scheme - Folders have blue colour, executable have green colour etc.
BD can display small Icons for the files if run with /i option.

Command Line Options
Just run BD with /? option to see all the Command Line options.
/fShows only files
/dShows only directories
/iShows icons
/hShow hidden files
/sShow system files
/nocolorShows content without colour
/noextDon't display the file extensions
/vVertical Display
/l OR /lsShows linux 'ls' command's colours.
/? OR /helpShows the help screen

The user can set the colour scheme for any file type. All this should be given as command line options ever time BD is executed. The command line options are shown below.
File TypeExtensionText Colour SettingBackground Setting
Folder-/dir <color>/dir_back <color>
Executablesexe,bat,com/exe <color>/exe_back <color>
Text Filestxt,doc/txt <color>/txt_back <color>
HTML Fileshtm/html <color>/html_back <color>
Picturesjpg,gif,bmp,tga,png/pics <color>/pics_back <color>
Musicmp3,mid,wav/music <color>/music_back <color>
Scriptsvbs,js,pl,cpp,c,jav,py,tcl,xml,mak,vb,php,h/source <color>/source_back <color>
Video Filesmov,asf,dat,avi,mpg,mpe/video <color>/video_back <color>
Compressedzip,cab,tar/zip <color>/zip_back <color>
Others*.*/others <color>/others_back <color>

Example : If you want to see all exe files in green colour and music files in white colour with gray background, then you should give the command -
bd /exe green /music white /music_back lightgray

Now if you like those settings better than the default settings, you should make a batch file with the below content in it.
bd %1 %2 %3 %4 %5 %6 %7 %8 %9 /exe green /music white /music_back lightgray
and save it to a file called(for example) "ls.bat" in C:\Windows\Command folder. Now every time to type 'ls' in command prompt, you will call BD with the specified command line options.

Colour Settings
You can use any of these colours to replace the '<color>' in the above list. The colours are NOT case-sensitive so WHITE and whItE are the same. You can also give the colour code in the place of the colour. For example, 'bd /pics blue' is same as 'bd /pics 1'.
One thing to remember is that you should give only the first 8 colors in the chart as the background color. You can give any colour as the text colour.

Another problem with this option is that you can give the same colour as background and as text colour. For eg. if you give "bd /zip red /zip_back red" all you see is a red strip. You will not be able to read the text in the background whose colour is same as the text colour.

Colour NameColour CodeUse as Background
BLACK0Yes
BLUE1Yes
GREEN2Yes
CYAN3Yes
RED4Yes
MAGENTA5Yes
BROWN6Yes
LIGHTGRAY7Yes
DARKGRAY8No
LIGHTBLUE9No
LIGHTGREEN10No
LIGHTCYAN11No
LIGHTRED12No
LIGHTMAGENTA13No
YELLOW14No
WHITE15No


Can I get the source of BD?
BD is distruibuted as an open source program. You can get the source from the author's website http://www.geocities.com/binnyva. I compiled this program with Borland C++ compiler - I don't think it will have any problems if compiled in other compilers. If you want to make any change to the software feel free to do so. But please give credit where credit is due and keep my name in it. If you make some major changes to this software, I will add that change to BD and include your name in the credits.


Whats New?
These are the changes in V 2.00.A

Feedback

How do I get the latest version of BD?
You can visit my website at http://www.geocities.com/binnyva for more information and updates of BD. As soon as I make a major public release of BD, it will be featured there.

How do I contact the author of BD?
You can contact me by sending a email to binnyva@rediffmail.com. You can also visit my website at http://www.geocities.com/binnyva for more information and updates of BD.

What if I find a bug?
If you find a bug, please send email to the author. Describe the bug in as much detail as possible, and I'll do what I can to help resolve the problem.


Awards
CFS - 4/5 - 4/5.

Listing Pending in...
The Free Site

Totally Free Site