Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!unido!sbsvax!fs-info From: fs-info@sbsvax.UUCP (Fachschaft Mathe/Info) Newsgroups: comp.sys.ibm.pc Subject: Re: Full pathname of file wanted Summary: Spontaneous idea Message-ID: <716@sbsvax.UUCP> Date: 13 Apr 89 10:33:27 GMT References: <883@syma.sussex.ac.uk> Organization: Universitaet des Saarlandes, Saarbruecken, W-Germany Lines: 24 In article <883@syma.sussex.ac.uk>, leilabd@syma.sussex.ac.uk (Leila Burrell-Davis) writes: > I would like to pass to a program the full pathname of a file > whose location I give relative to the current directory. For > example, if I am in directory C:\SUBA\SUB1 and give the command > FOO ..\SUB2\MYFILE.EXT try a change directory to the specified relative path (possibly stripping a trailing filename, and remember the old dir), and then issue a get current work directory - this will (as far as I know) always return a full pathname (including the drive, I think). > Can anyone suggest how I might do this? Hope I could. /* * Brian o'Fish * c/o Patrick Schaaf * Alter Stadtweg 69 * D-6602 Dudweiler/Saar * GERMANY * * X.400: fs-info@sbsvax.informatik.uni-saarland.dbp.de */