Hi Gavin, you might be right.  I am not 100% sure, though I *do* remember
having a DOS tool that did exactly what I want to do when executed wihtin a
DOS Shell in NT4.

Nick.
"Gavin Sinclair" <gsinclair / soyabean.com.au> wrote in message
news:94316532409.20030328110823 / soyabean.com.au...
> On Friday, March 28, 2003, 9:55:42 AM, Nick wrote:
>
> > Hi,
>
> > I am wondering if it is possible to write a Ruby script to change the
> > directory, inside a Command Prompt window?
>
> > I want to do something like:
>
> > Before:
> c:\>>ruby rubychdir.rbw data
>
> > After:
> c:\data>>
>
> > Is this just not possible?
>
> Just not possible.  A Ruby program, like any other program, can only
> affect the environment of its own process and child processes.
>
> Gavin
>
>