Answer» Can you do string concatenation with the NT command 'title'?
I would like to concatenate the username (from %USERNAME%) with a title string.
Thanks,
SteveYup.
title %username% Command Window
Put in any leading or TRAILING spaces you may need.
Hope this helps. *off topic How do you reformat your computer, thank you for helping.Hello Mikepan
Please don't ask a question about a different subject on someone else's POST.
Please post your question about formatting in the Windows forum if you intend formatting then re-installing a Windows OS.
If you intend just re-installing a Dos OS then ask in the DOS forum.
ALWAYS, but always, give some info about your pc EVEN if it's just to say what OS you are using.
Many thanks & looking forward to being of some help to you.Sidewinder,
Excellent help you provided. For those INTERESTED the following code works perfectly:
@echo off cls set _friendlyName=%username:.= % set _titleString=6 MDG Logon Window -- Hello %_friendlyName% @title %_titleString% Oh, one point of explanation.
cls set _friendlyName=%username:.= %
:: The above code takes the dot out of the username :: Our logon name format is fn.ln :: The _friendlyName variable is a transform with :: the dot replaced by a space
set _titleString=6 MDG Logon Window -- Hello %_friendlyName% @title %_titleString%
Thnaks again for the help!
|