From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2002-01-23T02:52:22+09:00 Subject: Re: Windows ruby(cygwin version) Command Expansion Problem In article <001501c1a360$ee7864e0$0700000a@backpack>, Nat Pryce wrote: >The 'dir' command is implemented by the command-line shell on Windows, and >is not a separate program. So, you need to pass pass the arguments '/c dir' >to the command interpreter. The name of the command interpreter is >different on different versions of Windows, but luckily is stored in the >COMSPEC environment variable. So, to execute the 'dir' command, you have to >use: > > `ENV["COMSPEC"] /c dir` > Thanks, I didn't know about this environment variable. Phil