From: Victor Manuel Reyes Viloria Date: 2002-04-20T05:40:26+09:00 Subject: Re: ms-dos calls on Windows? and/or, getting working directory? The following works for me under windows/2000 dos shell. d = Dir.pwd Victor |---------+----------------------------> | | "Brian Denny" | | | | | | | | | 04/19/2002 04:29 | | | PM | | | Please respond to| | | ruby-talk | | | | |---------+----------------------------> >---------------------------------------------------------------------------------------------------------------------------------------------| | | | To: ruby-talk@ruby-lang.org (ruby-talk ML) | | cc: | | Subject: ms-dos calls on Windows? and/or, getting working directory? | | | | | >---------------------------------------------------------------------------------------------------------------------------------------------| hi... on Unix, you can do something like, foo = `pwd` the equivalent on Windows (foo = `cd`) seems not to work. is there some way i can make an ms-dos shell call? or does it have to be a "system call", ie Win32 API? actually, all i'm trying to do at the moment is get the current working directory from within ruby, so if i'm totally barking up the wrong tree and there's another simple way to do it, please let me know. thanks, -brian