You are here:   Home Tips & Tricks To echo a Tab character in a batch file
May
24
2007
To echo a Tab character in a batch file E-mail
Written by Misha Hanin   

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                   #

 


blog comments powered by Disqus
 
Subscribe to CuruIT
Get tips, news and tutorials via RSS, Email or Twitter

Enter your email address:


Subscribe to my news feed for free Follow me on Twitter! Become a CuruIT fan on Facebook :) Become a CuruIT fan on YouTube :)

Tips from ITStuff.ca


Review http://www.curuit.com on alexa.com