Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!lll-tis!helios.ee.lbl.gov!nosc!ucsd!ucsdhub!esosun!seismo!uunet!munnari!phi From: phi@munnari.oz (Philip F. Hingston) Newsgroups: comp.sys.amiga Subject: Problem with paths and Execute() Message-ID: <2331@munnari.oz> Date: 31 Aug 88 02:45:41 GMT Organization: Comp Sci, Melbourne Uni, Australia Lines: 15 I've got this really neat C program that uses Execute() to run shell scripts. It's nearly finished but I've come across a last minute hitch. When the program is run from a cli, the processes created by Execute() inherit the search path from that cli. However, when run from the workbench, they get the default search path ( CurrentDirectory + C: ). This is very painful as I don't want to have to set a path for each process, possibly causing "Please insert volume xxx" requesters and annoying the user. The program sys:cli seems to have some way of picking up the path that was in effect when loadwb was run ( I think ). Can anyone tell me how to do this or suggest another solution to my problem? Thanks in anticipation. Philip Hingston (phi%munnari.oz@uunet.uu.net)