.EXAMPLE:
This is a handy way to draw horizontal lines of dashes,
dots, or any other desired character.
Fdate /FE /Q /JC-79
The /J parm can be used to left-pad a number with zeroes.
.EXAMPLE:
Many of Fdate's input formats require the year to be in
complete 4-digit CCYY format. If your batch file obtains a
value for YEAR from the user, the user might enter a YEAR
that is less than 1000. You can add leading zeroes to YEAR
by right justifying it, padded it with '0' to a length of 4.
Fdate /Fe /Q%year% /JR04 /vyear
Because /J can be used to truncate a string to a specified length, it
can be used to extract the rightmost, leftmost, or centermost ##
characters of a string.
.EXAMPLE:
Fdate /Fe /J"C 79" /Q"SCREEN TITLE"
Fdate's output is not put into an environment variable, so it will be
displayed on the screen. This command will echo the string "SCREEN
TITLE" to the screen, centered in a field 79 characters long (that is,
centered on the screen), and padded to the left and right with blanks.
.EXAMPLE:
Fdate /Fe /J"L.40" /Q"Next report due date" /Vtitle
Fdate /fadd /N60 /Od1 /Q"%title% "
The first command left-justifies "Next report due date" in a
string 40 characters wide, padded to the right with periods, and
puts it into the TITLE environment variable.
In the second step, the TITLE environment variable is used as
the label for a date 60 days in the future. In the second step,
note the space between the end of %title% and the trailing
double-quote. This leaves a nice space between the dot leader
and the date.
.EXAMPLE:
For more examples, see HOLIDAYS.BAT.