To echo a tab character in a batch file:

1. Edit your batch file in Notepad.

2. Depress the Tab key in the appropriate places in your echo command line.


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:

JSI009                  Jerry                   #