Set environment variable to 0x09 - the tab character

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

set tab=0x09 gives the character string "0x09"

How do I get it to be just the single 1 character value
 
dino said:
set tab=0x09 gives the character string "0x09"

How do I get it to be just the single 1 character value

Simple:
set tab={tab}{Enter}

where {tab} means pressing the Tab key.
 
OK that works - but shouldn't there be a version that is more transparent for
someone reading the batch file of the sort set tab=0x09 ???
 
There are quite a few "should" things for batch files,
most of which I would consider a lot more desirable,
such as a region-independent way of obtaining machine
date & time, or accessing various disk and file parameters.
 
REM The following line sets the variable tab to the tab character

OR

: The following line sets the variable tab to the tab character
 
Back
Top