Re: system "feature"
- Posted by David Garcia <donovan at ABS.NET> Apr 25, 2000
- 368 views
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...