From owner-freebsd-questions Thu Feb 19 09:10:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA15282 for freebsd-questions-outgoing; Thu, 19 Feb 1998 09:10:27 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from send1b.yahoomail.com (send1b.yahoomail.com [205.180.60.23]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA15106 for ; Thu, 19 Feb 1998 09:09:53 -0800 (PST) (envelope-from mmadio@yahoo.com) Message-ID: <19980219170938.6418.rocketmail@send1b.yahoomail.com> Received: from [192.233.136.17] by send1b; Thu, 19 Feb 1998 09:09:38 PST Date: Thu, 19 Feb 1998 09:09:38 -0800 (PST) From: "Michael J. Madio" Subject: Re: To: Daniel_Soares/Nursing/USB/SUNYCON@notes2.nursing.sunysb.edu, questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG For starters, why did you post this question to this mailing list? This list is for FreeBSD and not DOS! The answer you are looking for is using the dir command with the /s and /b switches. For example, 'dir test.dan /s /b' issued from the root of a drive would traverse all the directories and return something like 'c:\mydata\test.dan' ---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. > > Any help would be appreciated. > > Daniel Soares > Daniel_Soares@notes2.nursing.sunysb.edu > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > == Michael J. Madio Senior Technical Engineer POYA Computers _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message