home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / maj / 2033 / which.bat < prev   
DOS Batch File  |  1994-06-01  |  433b  |  14 lines

  1. echo off
  2. if "%1"=="/?" goto usage
  3. if "%1"=="" goto usage
  4. d . :path /IEs[t]hP~~/.u + %1.* %2 %3 %4
  5. goto exit
  6. :usage
  7. echo WHICH: Find out from where DOS will find program f1 to run.
  8. echo usage: WHICH f1 o1 o2 o3 ..
  9. echo where o1, o2 .. are additional options
  10. echo e.g.   WHICH FORMAT      Show from where the program "FORMAT" is run
  11. echo        WHICH ED /c a:    Find from where "ED" is run and copy it to drive A:
  12. :exit
  13.  
  14.