Xref: utzoo alt.sources:3654 comp.unix.programmer:1661 comp.os.vms:38305 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!snorkelwacker.mit.edu!ai-lab!life!ksh From: ksh@ai.mit.edu (K. Shane Hartman) Newsgroups: alt.sources,comp.unix.programmer,comp.os.vms Subject: Re: Relative path to Absolute Path Message-ID: Date: 25 Apr 91 03:22:26 GMT References: <1473@geovision.gvc.com> <1515@geovision.gvc.com> Sender: news@ai.mit.edu Organization: MIT Artificial Intelligence Lab Lines: 16 In-reply-to: pt@geovision.gvc.com's message of 23 Apr 91 18:32:15 GMT In article <1515@geovision.gvc.com> pt@geovision.gvc.com (Paul Tomblin) writes: Although I got absolutely zero response to this request, I did find an answer. With the error checking turned off, what I ended up doing was approximately this: chdir(new_dir); getcwd(new_dir, MAX_PATH_LEN); It works beatifully, on both VMS and unix. (And probably DOS, but I wouldn't bet my life on it.) Works fine in DOS too. The only wrinkle I add to it is error checking for nonexistent path and preserve the original path. Shane Hartman