From owner-freebsd-questions Thu Feb 19 13:12:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA25732 for freebsd-questions-outgoing; Thu, 19 Feb 1998 13:12:47 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA25343 for ; Thu, 19 Feb 1998 13:12:03 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id HAA01312; Fri, 20 Feb 1998 07:41:48 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id HAA28278; Fri, 20 Feb 1998 07:41:48 +1030 (CST) (envelope-from grog) Message-ID: <19980220074148.44539@freebie.lemis.com> Date: Fri, 20 Feb 1998 07:41:48 +1030 From: Greg Lehey To: Daniel_Soares/Nursing/USB/SUNYCON@notes2.nursing.sunysb.edu, questions@FreeBSD.ORG Subject: Finding file paths (was: no subject) References: <852565B0.005D1EC8.00@notes2.nursing.sunysb.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <852565B0.005D1EC8.00@notes2.nursing.sunysb.edu>; from Daniel_Soares/Nursing/USB/SUNYCON@notes2.nursing.sunysb.edu on Thu, Feb 19, 1998 at 12:00:37PM -0400 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 19 February 1998 at 12:00:37 -0400, Daniel_Soares/Nursing/USB/SUNYCON@notes2.nursing.sunysb.edu wrote: > > Is there a command in DOS that would return the path of a given file > name. For eg. I know a file Test.dan exists somewhere on my > harddrive. I need to have DOS return the pathname for that file so > that I can then pipe it into a batchfile to have it deleted. Sorry, we don't do DOS. Under FreeBSD, you have a number of options. 1. If it's an executable in your PATH, you can enter which 2. You can locate it with locate: locate 3. You can find it with find: find / -name Does this answer your question? Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message