15 May 16:07
Re: finding current drive
From: Parv G. <ghotrapa <at> yahoo.com>
Subject: Re: finding current drive
Newsgroups: gmane.comp.lang.ruby.general
Date: 2008-05-15 14:07:43 GMT
Subject: Re: finding current drive
Newsgroups: gmane.comp.lang.ruby.general
Date: 2008-05-15 14:07:43 GMT
> 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/.
RSS Feed