Using Scite to change directory

I tried this command without success:

Dir.chdir (D)

I shall I proceed ?

mosar

mosar wrote:

I tried this command without success:

Dir.chdir (D)

I shall I proceed ?

mosar

http://www.ruby-doc.org/core

Did you read this documentation ?

Thanks

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

···

On 1 mar, 15:48, Stephane Wirtel <stephane.wir...@descasoft.com> wrote:

mosar wrote:
> I tried this command without success:

> Dir.chdir (D)

> I shall I proceed ?

> mosar

RDoc Documentation

Did you read this documentation ?

Thanks

"mosar" <jean.moser@neuf.fr> writes:

[ ... ]

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 ?

Inside of double quotes, the backslash character is an "escape
character", which means that it causes the following character to be
handled literally, or in some cases, in a special manner. You need to
"escape" every backslash character that lives inside of double quotes if
you want it to be taken literally. Since this escape character is a
backslash, that means that you need to double the backslashes in this
example; i.e.,

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

···

--
Lloyd Zusman
ljz@asfast.com
God bless you.

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

···

--

Japanese Ruby List Subjects in English

> 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

···

On 3 mar, 13:32, Harry <ruby.hardw...@gmail.com> wrote:

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.

···

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")

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?

···

On 3 mar, 14:49, "mosar" <jean.mo...@neuf.fr> wrote:

On 3 mar, 13:32, 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")

> Harry
> --http://www.kakueki.com/ruby/list.html
> Japanese Ruby List Subjects in English

"Phrogz" <gavin@refinery.com> writes:

[ ... ]

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.

Windows actually allows it, as well. Forward slash been accepted all
the way back to the days of MS-DOS, except for arguments on the command
line of varios MS-DOS and Windows utilities. That's because the forward
slash is used there as a command-line option indicator. But from within
programs, pathnames in Windows and MS-DOS allow forward or backward
slashes, interchangeably.

···

--
Lloyd Zusman
ljz@asfast.com
God bless you.

Dir.entries(C:\\Documents and Settings\\Jean\\Bureau")

should be

Dir.entries("C:\\Documents and Settings\\Jean\\Bureau")
Add quote at beginning.

Harry

···

On 3/3/07, mosar <jean.moser@neuf.fr> wrote:

On 3 mar, 14:49, "mosar" <jean.mo...@neuf.fr> wrote:
> On 3 mar, 13:32, 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")
>
> > 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?

--

Japanese Ruby List Subjects in English