People do customize their command window, ya know…

ConsoleColors

How easy it is to assume that the user would’ve standard command window configuration? As seen in the screen-shot above, I ran a tool from Windows DDK (the tool ironically is called LooksGood) and it changed my cmd window color scheme to what it assumed looks good Wink

This used to be a common problem when implementing TSRs in the days of  yore. And, one normally took care to store the original forecolor and backcolor of the user’s DOS screen.

I wonder how many of the new programmers who are now using ConsoleColor and Console.ForeColor might have even heard of TSRs let aside building one.

Anyway, this slipped as part of a tool built by Microsoft is the other irony :) But to do justice to the developer, it is just a tool to assist in development of a printer driver. And, the intended audience is also quite limited. After all, how many people in this world would run a tool to compare the output of a Raster Image Processor (RIP) to a known good source? Unless of course you are implementing an XPS printer! Wink ( http://blogs.msdn.com/xps/archive/2006/06/02/614795.aspx)

 

If you are looking at customizing your cmd window, try the following two links…

Stupid Command Prompt Tricks

Using Consolas as the Windows Console Font

 

 

 

del.icio.us Tags:

Technorati Tags: customize cmd window

Remove A: from list of drives in Windows Explorer

Most computers today ship without a floppy drive. Yet, Windows Explorer does not detect this automatically and insists on displaying the floppy drive. And, if you click on it, or select it by mistake, it takes a few frustrating seconds to popup the "Insert disk" dialog (the one that says Please insert a disk into drive A:.)

insertDisk

To get rid of the drive entry in Explorer, the floppy disk controller in Device Manager must be disabled. The steps to do that are:

1. Start Device Manager by either going to Control Panel -> System -> Hardware Tab -> Device Manager or by running the command devmgmt.msc

2. Browse to Floppy Disk Controllers in the tree view and select Standard Floppy Disk controller. Ensure you are viewing Devices by Type (View -> Devices by type)

3. Right-click on Standard Floppy Disk controller and select Disable

RemoveFloppyDrive

4. Answer Yes to the dialog that asks you whether you want to really disable it or not.

That’s it. Now you can comfortably press Win + E to bring up Explorer and use Arrow keys to navigate without A: bothering you ;)

To enable the floppy drive, right click on the "Standard floppy disk controller" in Device manager and select Enable.

 

 

 

 

 

 

del.icio.us Tags:

Technorati Tags: Remove A: from list of drives in Windows Explorer,Remove floppy drive letter