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

“mosar” [email protected] 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”)

On 1 mar, 15:48, Stephane W. [email protected]
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

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 3 mar, 13:32, Harry [email protected] wrote:

Try this

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

Harry

On 3 mar, 14:49, “mosar” [email protected] wrote:

mosar

Try this

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

Harry
Kakueki.com is for sale | HugeDomains
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?

On 3/3/07, mosar [email protected] wrote:

I am making a little syntax error but how ?

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

On Mar 3, 5:32 am, Harry [email protected] wrote:

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.

“Phrogz” [email protected] 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.