Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!fernwood!uupsi!sunic!news.funet.fi!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi) Newsgroups: comp.os.msdos.misc Subject: Re: Passing path as Batch parameter Message-ID: <1991May4.110626.1434@uwasa.fi> Date: 4 May 91 11:06:26 GMT References: <375@galileo.rtn.ca.boeing.com> Organization: University of Vaasa Lines: 10 In article <375@galileo.rtn.ca.boeing.com> rfh3273@galileo.rtn.ca.boeing.com (Dick Harrigill) writes: >PROBLEM: > To be able to pass a path/directory to a batch file as a parameter, > and be able to act upon a file within that directory. : Test for the existence of the file in each of the relevant directories and set an enrivroment variable to reflect which path is true. Then branch with a goto depending on the result of the test. There are probably neater solutions, but this is one.