From: Mike Gold Date: 2008-10-17T11:10:56+09:00 Subject: Re: Damn you cmd.exe! cmd.exe would seem like a red herring here. Subprocesses do not modify the environment of their parents, whether it's a cmd.exe process or whether you've executed 'cd' directly without the shell. The case is the same on Linux and Windows. Even if Windows had a cd.exe executable (you could use cygwin's cd), it wouldn't help you. Your purpose is unclear to me. If you want to make your own shell, you read the "cd" string and translate it to Dir.chdir. If you want to run a persistent cmd.exe, then your program is the one-liner exec("cmd.exe"). Do you somehow seek something in between? -- Posted via http://www.ruby-forum.com/.