A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Changing the caption of a DOS box to the name of the current folder - a problem



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 28th 19, 07:14 PM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default Changing the caption of a DOS box to the name of the current folder - a problem

Hello all,

A few weeks ago I got a bit fed up with having several minimized
command-prompt windows on my taskbar, and all displaying the same "command
prompt" caption text. So, I googled for a solution (duh).

What I found is the program "title", with which the "idle" caption of the
window can be set. As I start a batch file to open such a command prompt
(which gets the path to the folder in %1) I just added the line "title %~n1"
to set the caption to the name of the current folder.

The problem ofcourse is that when I execute a "cd" the caption doesn't
change to match the new folder. :-(

Does anyone know if the "title" program (or another /that comes with the
OS/) can be told to track the current folders name ?

Regards,
Rudy Wieser

Remark: If no program exists I will probably try to make one myself: I don't
think that the result will be pretty though (polling & updating
command-prompt windows every 100...1000 ms or so. yuck)



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 07:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.