Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ns.uoregon.edu!milton!uw-beaver!cornell!calvin.ee.cornell.edu!richard From: richard@calvin.ee.cornell.edu (Richard Brittain - VOS hacker) Newsgroups: comp.os.msdos.apps Subject: Re: How to implement WHEREIS as a 4dos alias? Message-ID: <1991Mar19.023248.6557@calvin.ee.cornell.edu> Date: 19 Mar 91 02:32:48 GMT References: <1991Mar18.152431.15843@linus.mitre.org> Distribution: usa Organization: Cornell Space Plasma Physics Lines: 22 In article <1991Mar18.152431.15843@linus.mitre.org> dhf@tatum.mitre.org (David H. Friedman) writes: >. The superior wildcard capability of the 4dos DIR command make it look >like a good idea to do a WHEREIS file finder as a command alias. The >problem is to list out the full filespecs including the path. There >doesn't appear to be an option to DIR that lists the full filespec. I have never felt a need for this since I would use one of the many unix "find" look-alikes (I like "stuff" personally). However I felt ready to rise to the challenge so here is my entry: PPATH=iff exist %1 then ^for %%i in ( %1 ) echo %_CWD\%i ^endiff WHEREIS=global /i /q ppath %1 This will do everything below the current directory - a bit more work could make it always search everything, like surrounding the whereis with a pushd \ ^ ....^ popd -- Richard Brittain, School of Elect. Eng., Eng. and Theory Center Cornell university, Ithaca, NY 14853 INTERNET: richard@calvin.ee.cornell.edu UUCP: {uunet,uw-beaver,rochester,cmcl2}!cornell!calvin!richard