[comp.windows.ms.programmer] Changing the PATH - putenv?

hadgraft@vaxc.cc.monash.edu.au (Hadgraft) (06/14/91)

I want to write a small application that modifies the PATH before I run another
application from it. I've tried putenv, but it doesn't seem to work. I was sure
it worked under Win2. Does anyone have any ideas? After a call to putenv, the
environment variable (retrieved with getenv) is usually blank - but not always!
It's very unpredictable.
--
  +--------------------------------------+
  |  Roger Hadgraft                 +----------------------------------+
  |  Senior Lecturer                |  hadgraft@civeng.monash.edu.au   |
  |  Dept of Civil Engineering      |  phone:  +61 3 565 4983          |
  |  Monash University              |  fax:    +61 3 565 4944 or 3409  |
  |  Clayton, Vic. 3168. Australia. +----------------------------------+
  +--------------------------------------+