To echo a Tab character in a batch file

Posted Thursday, 24 May 2007 by Michael Khanin
Digg!

To echo a Tab character in a batch file:

1. Edit your batch file in Notepad or any other text editor.
2. Depress the Tab key in the appropriate places in your echo command line.

Example:

If you type the following, replacing each occurance of <TAB> with the Tab key:

@echo %computername%<TAB><TAB><TAB>%UserName%<TAB><TAB><TAB>#

The following should be displayed:

Pelekan-pc                  Pelekan                   #




Reddit!Del.icio.us!Google!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites! title=
 

Add comment

You have no rights to add a new comment. May be you need to register on the site.