Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Switching CMD prompt

15 views
Skip to first unread message

Graham Hobbs

unread,
Apr 29, 2012, 1:29:51 PM4/29/12
to
Hello,

Simple stuff again:-(. I am in a Windows XP CMD window; the prompt is:
c:\conrad\tempc

I run a REXX pgm containing.

'cd\'

and the REXX ends but am still in c:\conrad\tempc .. why is that?
Am sure there's a proper explanation and is there a solution?

Please, thanks,
Graham Hobbs

foxidrive

unread,
Apr 29, 2012, 1:51:42 PM4/29/12
to
Probably because you are working in a child shell and when that instance of CMD ends it places you back where you were when it started.


--
Mic


Graham Hobbs

unread,
Apr 29, 2012, 6:41:41 PM4/29/12
to
Oh!
I understand. That's a poor scenario for me.
In the simplest terms, my need is that when a user runs my REXX
conrad1 it is invoked from any CMD window prompt.e.g. c:\conrad1 qaaa
It
a) creates a directory c:\qaaa and easily done
b) presents the user a CMD window with a c:\qaaa> prompt.
Is b) feasible?
TIA
Graham

foxidrive

unread,
Apr 29, 2012, 6:54:53 PM4/29/12
to
if you use this it will open a child cmd prompt in the current directory.

"%comspec%" /k


> TIA
> Graham
>


--
Mic


Graham Hobbs

unread,
Apr 29, 2012, 8:53:55 PM4/29/12
to
On Mon, 30 Apr 2012 08:54:53 +1000, foxidrive
Thanks foxidrive, much appreciated, will test it out tomorrow.
Graham
0 new messages