Strange Prompt.

Apr 20, 2011
Hi Rex,
Hello Forum,

If I follow the follwoing steps I (unexpectedly) change the prompt:

- I'm in [C:\Program Files\JPSoft]
- Call 'dir /='
- Hit [...]
- Go 2 Dirs up to to c:\ and select "Program Files", hit open and then ok.
- I got the dir of [C:\Program Files\], fine.
- Prompt says now [C:\Program Files], why?
- echo %@cwd[C:] says: [C:\Program Files\JPSoft]

May 20, 2008
Elkridge, MD, USA
From: Exolon
| If I follow the follwoing steps I (unexpectedly) change the prompt:
| - I'm in [C:\Program Files\JPSoft]
| - Call 'dir /='
| - Hit [...]
| - Go 2 Dirs up to to c:\ and select "Program Files", hit open and
| then ok.
| - I got the dir of [C:\Program Files\], fine.
| - Prompt says now [C:\Program Files], why?
| - echo %@cwd[C:] says: [C:\Program Files\JPSoft]

Suggest you check and report what your prompt string (i.e., the value of the PROMPT environment variable) is, but remember, the PROMPT command always changes it. Use the SET command to display it, and make sure that any embedded commands and variables are not expanded in the report.
May 20, 2009
Hi Rex,
Hello Forum,

If I follow the following steps I (unexpectedly) change the prompt:
I too see the same result.
I have not exactly the prompt variable in the environment, but I use "TitlePrompt=$P".
Also, if I am in the root of my system drive (F:) and I type
*dir /=
hit [...]
I select "Program Files" with the single click so that the "File name" field is empty.
I click on Open.
In the "File or Directory Name" I see "F:\Program Files\Program Files", so it is twice.
It seems to me that the browsing of directories uses the same uses the same variables/data/memory ad the directory commands, and I am not sure if this is completely wrong, but it seems to me that some checking and some cleanup are necessary.

Thank You very much and regards

Rodolfo Giovanninetti
Apr 20, 2011
What is the (original) content of your prompt?

I start in [C:\Program Files\JPSoft] and my prompt is reflecting the correct directory. I did no change to the way the prompt is displayed (or the prompt variable), so it should be default.
May 20, 2008
Syracuse, NY, USA
On Mon, 12 Sep 2011 09:16:02 -0400, rconn <> wrote:

|What is the (original) content of your prompt?

I see it too. Following those instructions, starting in "c:\program
files\litsoft". When it's all over, and the contents of "program files" was
shown, I get the the following. It seems "$p" got screwed up.

c:\> echo %_cwd

c:\> echo %@cwd[c:]
C:\Program Files\Litsoft

c:\> cd
C:\Program Files\Litsoft

c:\> echo %prompt

c:\> *dir

 Volume in drive C is OS             Serial number is 9845:71f0
 Directory of  C:\Program Files\Litsoft\*

c:\> cd ..

c:\program files>
Similar threads
Thread starter Title Forum Replies Date
R strange bug? Support 7
Jesse Heines Strange Line Wrapping Behavior Support 14
F strange results Support 9
M Strange error messages from TCC in FTP copy Support 7
M Another possibly strange remote registry issue Support 5
forbin Strange handling of [nonbright] magenta background (v22) Support 2
N Fixed Strange dir behavior Support 6
vefatica REGDIR, strange error message Support 7
T WAD Strange Unexpected "features" in the Debugger Support 2
P Strange mouse behavior with list Support 2
vefatica Strange tcc.exception.log Support 7
vefatica A strange one Support 0
D Strange DO behavior with /O Support 5
Glenn Bowes Strange text at startup Support 5
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
vefatica Big numbers, strange errors Support 1
aedthuio Strange... lpksetup Support 4
CWBillow dir /4 strange Support 2
D Strange issue with FOR loop Support 15
MikeBaas Strange prob with %@replace.. Support 4
vefatica OT: strange files in %TEMP Support 10
Dan Glynhampton Documentation v15 help: Strange links in @INT topic Support 0
R WAD Strange output from "memory" command Support 1
M Yet another strange something re something called "@TCONVERT" Support 8
Roedy How to? Strange colours Support 9
M WAD Strange "Start" misbehavior... Support 10
vefatica Very strange console font corruption Support 3
Steve Pitts Strange problem with FREE Support 10
A strange error in alias Support 9
newgeekorder Debugger IDE - strange tab and parameter behaviour Support 1
vefatica Strange folders Support 1
T Strange CPU value Support 3
J Strange error: unset /s Support 14
M Strange behavior... Support 2
CWBillow Strange happenings Support 2
B Strange handling of a .BAT file Support 5
vefatica Strange behavior reloading SHRALIAS sav files. Support 1
J ASSOC / FTYPE strange error message Support 3
D Strange crashes in @CRC32 and @MD5 Support 9
Charles Dye Strange output, here-doc redirection, TYPE, //UnicodeOutput=Yes Support 6
S Strange CHKDSK behavior Support 6
vefatica Strange results with CP 1252 Support 12
S Strange REN problem - non-English characters Support 3
dcantor Strange status in ACTIVATE command Support 0
vefatica ANSI, PROMPT ... ??? Support 1
FreezerBurnt ANSI Prompt messes up list output. Support 39
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
M How to? Black TCC Prompt Support 2
N Command execution slows down in TCC Prompt after a while Support 6
K Fixed Prompt display will be shifted after use dir to display a filename with Chinese. (v25.00.28 x64) Support 18

Similar threads