From: Harry Date: 2007-03-03T23:10:17+09:00 Subject: Re: using Scite to change directory On 3/3/07, mosar wrote: > On 3 mar, 14:49, "mosar" wrote: > > On 3 mar, 13:32, Harry wrote: > > > > > > I am coming again with my littler problem. I tried exactly this > > > > command: > > > > Dir.chdir("C:\Documents and Settings\Jean\Bureau") and the answer was: > > > > > > "No such file or directory." > > > > I know that this path is correct and that the files exist because I > > > > have tested it with the command window. > > > > I am making a little syntax error but how ? > > > > > > mosar > > > > > Try this > > > > > Dir.chdir("C:\\Documents and Settings\\Jean\\Bureau") > > > > > Harry > > > --http://www.kakueki.com/ruby/list.html > > > Japanese Ruby List Subjects in English > > Its OK. I have no message.But now I am trying Dir.entries with the > same files.Dir.entries(C:\\Documents and Settings\\Jean\\Bureau")I > have no answer.Can you help me? > > > Dir.entries(C:\\Documents and Settings\\Jean\\Bureau") should be Dir.entries("C:\\Documents and Settings\\Jean\\Bureau") Add quote at beginning. Harry -- http://www.kakueki.com/ruby/list.html Japanese Ruby List Subjects in English