On Mar 3, 5:32 am, Harry <ruby.hardw... / gmail.com> 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")

Or
Dir.chdir( "C:/Documents and Settings/Jean/Bureau" )

Even though Windows normally uses a backslash for directory path
separator, Ruby allows the forward slash in (almost?) all cases.