home *** CD-ROM | disk | FTP | other *** search
/ Windows NT Super Tune-Up Kit / PIE-WindowsNTSuperTuneUpKit-1997.iso / DISK_UTL / NTWHICH / NTWHICH.H < prev    next >
Text File  |  1994-07-24  |  1KB  |  33 lines

  1. /* ntwhich.h ... find first matching executable in path
  2.  * Copyright (C) 1994 by
  3.  * jack j. woehr, p.o. box 51, golden, colorado 80402-0051
  4.  * jax@well.sf.ca.us JAX on GEnie 72203.1320@compuserve.com
  5.  * SYSOP, RealTime Control & Forth Board [RCFB] (303) 278-0364
  6.  * All Rights Reserved
  7.  */
  8.  
  9. #define aFileNotFound    8    /* return this if any which'ed file isn't found */
  10. #define buffSize    16384    /* oughta be enuff! */
  11. #define pathSize    4096    /* ditto */
  12. #define MAX(a,b)    a > b ? a : b
  13.  
  14. #define LICENSE        "Copyright 1994, Jack J. Woehr, All Rights Reserved."
  15. #define LICENSE1    "You may redistribute and modify under certain conditions; see COPYING.TXT."
  16. #define LICENSE2    "COPYING.TXT is the GNU Public License, Version 2."
  17.  
  18. #define USAGE        "<-l | -L | /l | /L | -h | -H | /H | /?> [filename, filename, filename, ...]"
  19. #define USAGE1        "Finds first occurrence in %PATH% of filename.COM,.EXE,.BAT., or .CMD"
  20. #define USAGE2        "in that order. If 'filename' has .<any>, finds specific file in %PATH%."
  21. #define USAGE3        "The -H option gives this help. The -L option gives the license."
  22. /*
  23.  
  24.  *    Prototypes
  25.  */
  26.  
  27. int which ( char * );
  28. int dotwhich ( char * );
  29.  
  30. /* End of which.h */
  31.  
  32.  
  33.