Categories

May 2009
S M T W T F S
« Apr   Jun »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Use “Tab” Key under DOS Console to Autofill File & Directory Names

.

“Tab” key is the most useful and powerful key under DOS console in MS Windows XP.

This key is simply a DOS version of “Lazy Susan”. It saves you a lot of typing. Especially, it rescues you from typing errors and frustration. 

If you get used to use “doskey.exe” under DOS console, you might also love to use “Tab” key.

Doskey is a default function loaded under Dos console in MS Windows XP. You can use up and down arrow key to roll back and forth from a list of commands you have entered in the past. 

Tab is also a default function loaded under the same environment. You can use the “Tab” key to roll through the names of the files and directories (folders) under your current directory.

Before I show you an example, let’s locate this useful key first.
Tab keyTab key location

Here are some screen shots from my computer:

1, use “dir/a” to display all files and directories under my root directory of C drive, including H & S attribute files & directories.

all files and directories under my root directory of C drive

2, press “Tab” key once. The 1st item appears.
1st Tab, show AUTOEXEC.BAT
If I press “Enter” key, it will execute file AUTOEXEC.BAT.

3, press “Tab” key again, The 2nd item appears. Note that boot.ini has S, H, R attributes.
2nd Tab, show boot.ini
If I press “Enter” key, it will open boot.ini file with Windows Notepad.

4, when there are more than one word within the name of a file or directory, the file or directory name will be double quoted.
shows double quote if more than one word

5, use “Tab” key to get into a long-named directory is a piece of cake. Type in “cd” and a space, then Tab to roll to the right directory. The directory name is autofilled. Press Enter. I’m in. No typing hassle!
get into a long-named directory is a piece of cake

 

The worst case scenario, if hundreds of files and directories need to be roll through, it will be a nightmare.

To solve this problem, here is a nice hint.

I know a directory call “document” something. I just need to type the first letter or the first few letters of this directory.

type in the first few letters

Then I press Tab. The name that matches the first letter(s) is auto completed.

press Tab to auto complete

This is nice & neat!

  • Share/Bookmark

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>