Re: system "feature"

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

Mike Sabal wrote (subject to massive snippage):

> ...However, when using the system() command, the network drives are invisible.

> ...I'd like to know if anyone has seen anything like this before.
>
> Note: I temporarily worked around the problem by remapping the network drive
> to a different letter in the batch file, but that doesn't really solve the
> original problem.
>
> Michael J. Sabal

One of the things I have run into is that under a Win32 environment the new
shell does *not* appear to inherit *any* of the environment settings at all. This
was especially evident on NT4.
After much experimentation, I was able to come up with a very messy solution
which involved using getenv() and writing a batch file to execute from within the
shell called from system() to set the variables, but even that is subject to
vagaries since so many settings are stored in the registry these days...

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

Search



Quick Links

User menu

Not signed in.

Misc Menu