PC Review


Reply
Thread Tools Rate Thread

cmd.exe and command line prompt presentation of the current directrory

 
 
Larry__Weiss
Guest
Posts: n/a
 
      9th Aug 2004

When I include the current directory path in the command line prompt string, I sometimes
get the shortname version of the directory nodes displayed. I can't figure out the pattern
as to when I see longnames and when I see shortnames.

- Larry Weiss
 
Reply With Quote
 
 
 
 
David Candy
Guest
Posts: n/a
 
      10th Aug 2004
Depends what program is giving the prompt. The window is merely a terminal window. There are many programs that write to console. If you start a dos program then it becomes Dos which doesn't support long file names.

It's much more complex than what I say, but that's the gist of it.

What you see is merely a console. If a Dos program exits then command.com provides the prompt. If a console program exits then a/ if started from the GUI the window closes (as there is nothing to provide the prompt) b/ if started from a 32 bit command prompt then cmd provides the prompt, c/ if started from command.com then command provides the prompt, and d/ Dos programs, no matter how started, always load command and command loads the program, then depending on settings - the window closes (because command exits as well) or command provides the prompt. 16 bit Windows programs are loaded similar to Dos programs but command always exits with the GUI program (and as there is no console window you don't see anything).

Command passes all internal command typed to cmd for execution.
--
----------------------------------------------------------
'Not happy John! Defending our democracy',
http://www.smh.com.au/articles/2004/...392635123.html

"Larry__Weiss" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>
> When I include the current directory path in the command line prompt string, I sometimes
> get the shortname version of the directory nodes displayed. I can't figure out the pattern
> as to when I see longnames and when I see shortnames.
>
> - Larry Weiss

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Prompt (cmd.exe) command line interface Larry__Weiss Windows XP General 7 23rd Jul 2006 03:42 PM
command line prompt showing how long last command took? sillyhat@yahoo.com Microsoft Windows 2000 CMD Promt 13 31st May 2006 04:18 PM
command line prompt showing how long last command took? sillyhat@yahoo.com Windows XP General 1 13th May 2006 02:03 AM
tweak the current command prompt josh Windows XP General 6 4th Feb 2006 04:14 PM
command prompt has wrong current directory? Oliver Rasto Microsoft Windows 2000 CMD Promt 4 7th Nov 2005 02:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:43 PM.