FULLSCREEN CONTENTS Project Home Page
.EXAMPLE.....: 72 Left-pad a number with zeroes, or a string with spaces
.ALIAS.......: 72
.CATEGORY....: examples 
.CODE........:

:: pad a number (stored in environment variable) STRING
:: to the left with zeroes, to make sure it is 4 bytes long
set STRING=1
Fdate /FE  /Q%STRING% /Jr04  /Vstring
echo STRING is [%string%]

:: pad a string (stored in environment variable) STRING
:: to the left with spaces, to make sure it is 4 bytes long
set STRING=aa
Fdate /Fe  /Q%STRING% /J"r 4"  /Vstring
echo STRING is [%string%]