Parv G. | 15 May 16:07
Favicon

Re: finding current drive

> Dir.pwd - if you want to find out what the "working directory" is,
> i.e. where the user was when he launched the script.
> 
> File.expand_path($0) - if you want to find what script was run from
> the command line.
> 
> File.expand_path(__FILE__) - if you want to find the path to the
> current script file.
> 
> Lars

thanks!  i could work with these.

Parv
--

-- 
Posted via http://www.ruby-forum.com/.


Gmane