Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!bruce!monu0.cc.monash.edu.au!vaxc.cc.monash.edu.au!hadgraft From: hadgraft@vaxc.cc.monash.edu.au (Hadgraft) Newsgroups: comp.windows.ms.programmer Subject: Changing the PATH - putenv? Message-ID: <1991Jun14.141428.86880@vaxc.cc.monash.edu.au> Date: 14 Jun 91 04:14:27 GMT Organization: Civil Engineering, Monash University, Australia Lines: 13 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. +----------------------------------+ +--------------------------------------+