Re: cmd.exe title bar and prompt
- From: "Wesley Vogel" <123WVogel955@xxxxxxxxxxx>
- Date: Wed, 22 Mar 2006 09:36:26 -0700
Philip,
#$%#$%#$%!!!!!!!!!! Son of a gun, it's been a fun morning. ;-)
IE crashed at MSDN. My machine crashed while messing with this. Too much
monkey business.
[[Whenever you subsequently use the CD command to change directories, the
current directory will be displayed in the title bar of the command
prompt. ]]
How to Change the Title Bar Caption of the Command Prompt
http://support.microsoft.com/default.aspx?scid=kb;en-us;98578
I had to mess with it for a while, but it does work in XP.
First, do not name it title.cmd. I changed it to bar.cmd.
Second, place somename.cmd in C:\WINDOWS, not C:\
Otherwise it works fine and looks just like what you want.
I missed your first original question...
Right click the Desktop | New | Shortcut |
Paste this in the location box:
%SystemRoot%\system32\cmd.exe
Click Next | Click Finish |
Right click the new cmd.exe shortcut | Properties |
In the Start in box replace %windir% with C:\ |
Click Apply | Click OK
Any proper path will work in the Start in box.
You can also change the Start in for the cmd shortcut located under
Accessories on the Start Menu.
--------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>
----
Then use the new shortcut instead of Start | Run | cmd
You can change to the Canadian prompt if you want:
prompt eh?
Just a joke, but it works. :-D
As for the title command, string specifies the title for the command prompt
window. The only characters that will not work are < > | The comma and
semi colon will work as long as they are not the first characters.
I am hitting the Save button a lot now. :-)
Title command help...
Start | Run | Paste: hh ntcmds.chm::/title.htm | Click OK
No, I am just a billionaire with a lot of time on my hands.
Tim Slattery and Ken Blake have posted links to the MVP site.
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In news:D047F880-378B-4663-B6C1-9CA5F1F98AC5@xxxxxxxxxxxxx,
Philip <Philip@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
Wes
title "Documents and Settings" - worked a treat, but title /? told me that
the title command only accepted a string constant as an arguments
But cut and paste of the path from the prompt into the title command prior
to applying Ken's Prompt $g to get expunge the path from the prompt the
trick.
I'll try to find a way to automate it - if I find a way that utilises non
MS software is it appropriate to post findings in this forum.
As an aside - I know what ObjectId's are and I know how to manipulate them
with fsutil - but what purpose do they serve, I think I might have a use
for them, but I want to turn them on and have Winda's create them when
files and folders are created. Only reference to their use I can find is
file replication services (FRS) which I understand is a server
application, not something one runs on an XP workstation, I do not want
to upgrade my XP to NT Server thanks
Finally what's a - "MS-MVP Windows Shell/User", that all you guys seem to
be. Surely you can't all be microsoft millionare vice presidents, or
perhaps you can.
Cheers
"Wesley Vogel" wrote:
You can set the title differently for every command prompt that you have
open.
Type:
title /?
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In news:B69166AE-CD31-4049-B911-D7CFD888663B@xxxxxxxxxxxxx,
Philip <Philip@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
"Ken Blake, MVP" wrote:
Philip wrote:
1. Is there a way I can get cmd.exe to put the current path into the
window title bar.
Not that I know of.
2. Is there a way to not have the current path in the prompt.
Issue the command
prompt $g
--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup
Thanks Ken - I'll paste that into my brain.
pity about Q1 tho', I often have several cmd.exe's stacked up and
there's no way to tell one from t'other in the task bar, maybe there is
in CoolSwitch, on another computer at the moment - CoolSwitch is
disabled.
Rgds PhilD
.
- References:
- Re: cmd.exe title bar and prompt
- From: Ken Blake, MVP
- Re: cmd.exe title bar and prompt
- From: Wesley Vogel
- Re: cmd.exe title bar and prompt
- From: Philip
- Re: cmd.exe title bar and prompt
- Prev by Date: Re: License for home use
- Next by Date: Re: Removing popup menu commands
- Previous by thread: Re: cmd.exe title bar and prompt
- Next by thread: Re: cmd.exe title bar and prompt
- Index(es):
Relevant Pages
|