RE: Duplicated files program

new topic     » topic index » view thread      » older message » newer message

Kat:
This is not the problem. Each drive under DOS/Windows has at any time its
current dir. If I issue:
i = chdir("D:\\GAMES"), I am changing the current dir of D: (a thing I don't
want to do) and, moreover, current_dir() still returns the current dir of
C:, for example C:\ZZ.
If, instead, I write:
i = chdir("D:"), nothing happens.
What I want to know is the current dir of a drive different from the one I
am executing my program. This works with system() under ex, but not under
exw.
Please have a look to my NEWDUP.EXW program that I sent earlier.
Regards.
----- Original Message -----
From: Kat <gertie at PELL.NET>
To: EUforum <EUforum at topica.com>
Sent: Tuesday, July 23, 2002 10:14 PM
Subject: Re: Duplicated files program


>
> On 23 Jul 2002, at 21:55, rforno at tutopia.com wrote:
>
> >
> > Rob:
> > It seems I performed not enough testing on my program.
> > While I was walking for an errand, it came to my mind a subtle potential
> > error, and when I returned home, I hurried to correct it. Then I found
> > several more bugs... :(
> > Now I have fixed all of them, with two exceptions:
> > 1) The problem of walk_dir with path "/" under Linux, that I already
> > mentioned to you. I think you can fix it easily.
> > 2) There is another problem under DOS and Windows. Using ex,
system("D:", 2)
> > changes to drive D: and then current_dir() gives the path (for example)
D:\ or
> > maybe D:\GAMES. But using exw, system("D:", 2) seems to do nothing, and
after
> > that current_dir() gives (for example) C:\EUPHORIA\TEST. I am using
system("D:",
> > 2) to know what is the current dir for drive D: if one specifies on the
command
> > line (for example) D:CHESS or simply D: As a result, one has to specify
an
> > absolute path for drives that are not the current one. Please tell me if
there
> > is a solution to this problem.
>
> Syntax: include file.e
> i = chdir(s) Description: Set the current directory to the path given by
sequence
> s. s must name an existing directory on the system. If successful, chdir()
returns 1.
> If unsuccessful, chdir() returns 0.
>
> This works for me.
>
> Kat
>
>
>
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu