If I write a batch file to do something out of batch commands, how do I get that batch file to put in the Windows header bar the name of that file?
Is there an "output to the window title" command in Windows batch language?
Wade Garrett wrote:
If I write a batch file to do something out of batch commands, how do
I get
that batch file to put in the Windows header bar the name of that file?
Is there an "output to the window title" command in Windows batch
language?
only at the time you start the batch, not afterwards.
On 2/8/2023 2:21 PM, Andy Burns wrote:
Wade Garrett wrote:the TITLE command changes the title of the current window at anytime
If I write a batch file to do something out of batch commands, how do
I get
that batch file to put in the Windows header bar the name of that file?
Is there an "output to the window title" command in Windows batch
language?
only at the time you start the batch, not afterwards.
while the batch is running.
On Wed, 8 Feb 2023 16:11:17 -0500, Zaidy036 wrote:
On 2/8/2023 2:21 PM, Andy Burns wrote:
Wade Garrett wrote:the TITLE command changes the title of the current window at anytime
If I write a batch file to do something out of batch commands, how do
I get
that batch file to put in the Windows header bar the name of that file? >>>>
Is there an "output to the window title" command in Windows batch
language?
only at the time you start the batch, not afterwards.
while the batch is running.
The annoying thing about the TITLE command is that, there's no way to
restore the original title back, after it has been changed.
the TITLE command changes the title of the current window at anytime
while the batch is running.
The annoying thing about the TITLE command is that, there's no way to >>restore the original title back, after it has been changed.
Can you store it in a string variable, so that you can set it back to
the original value later?
On Wed, 8 Feb 2023 16:11:17 -0500, Zaidy036 wrote:what would be the purpose?
On 2/8/2023 2:21 PM, Andy Burns wrote:
Wade Garrett wrote:the TITLE command changes the title of the current window at anytime
If I write a batch file to do something out of batch commands, how do
I get
that batch file to put in the Windows header bar the name of that file? >>>>
Is there an "output to the window title" command in Windows batch
language?
only at the time you start the batch, not afterwards.
while the batch is running.
The annoying thing about the TITLE command is that, there's no way to
restore the original title back, after it has been changed.
On 2/8/2023 7:23 PM, Char Jackson wrote:
the TITLE command changes the title of the current window at anytime
while the batch is running.
The annoying thing about the TITLE command is that, there's no way to >>restore the original title back, after it has been changed.
Can you store it in a string variable, so that you can set it back to
the original value later?
What's needed is that string variable to get the file name because the file name changes depending on the use, and then save it into that variable.
Something like this pseudo code
set TITLE=getfilename(current batch file name)
On 2/8/2023 2:21 PM, Andy Burns wrote:
Wade Garrett wrote:
If I write a batch file to do something out of batch commands,
how do I get that batch file to put in the Windows header bar
the name of that file?
Is there an "output to the window title" command in Windows batch
language?
only at the time you start the batch, not afterwards.
the TITLE command changes the title of the current window at anytime
while the batch is running.
On Wed, 8 Feb 2023 16:11:17 -0500, Zaidy036 wrote:
On 2/8/2023 2:21 PM, Andy Burns wrote:
Wade Garrett wrote:
If I write a batch file to do something out of batch commands,
how do I get that batch file to put in the Windows header bar
the name of that file?
Is there an "output to the window title" command in Windows batch
language?
only at the time you start the batch, not afterwards.
the TITLE command changes the title of the current window at anytime
while the batch is running.
Wow - I thought I was pretty good with CMD, but that's a new one on
me. It works in both native Windows CMD and TCC/LE. Thanks!
TITLE First
CMD
TITLE Second
EXIT
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 04:53:50 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,335,947 |