home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / kill2.zip / kill2src.zip / sendhelp.c < prev    next >
C/C++ Source or Header  |  1992-10-10  |  1KB  |  29 lines

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4.  
  5. extern int majversion,minversion;
  6.  
  7.  
  8. void sendhelp (void) {
  9.  
  10.   printf("\nKILL2  "__DATE__"  "__TIME__"  v%d.%02d",majversion,minversion);
  11.   printf("    Usage:  KILL2 -<switches> <files>"
  12.          "\nswitches:\n-L  List only (default)\n-T  Touch only\n-K  Kill 'em (no death without this)"
  13.          "\n-E  Exclude (-EAFILEN.AME excludes AFILEN.AME)"
  14.          "\n-D# Age in # days of files to delete (default = 0, all files)"
  15.          "\n-R  Recurse subdirectories\n-A#  All but newest # files"
  16.          "\n--  First dash is removed, then the argument is processed as a <file>"
  17.          "\n-?  This help\n");
  18.   printf("\nWhere kill/touch/list/exclude filenames are given, wildcarded patterns may be"
  19.          "\nused.  Paths ok in kill/touch/list filenames.  Multiple patterns may be given."
  20.          "\n\"KILL2 -K -E*D.DAT -E*.EXE D*.* C:\\STUFF\\E*.*\" is a valid command line.\n");
  21.   printf("\nFiles beginning with \'@\' are considered list files (text files containing"
  22.          "\nlists of file patterns, one per line).  Enter @@filename to work on a file"
  23.          "\nnamed @filename.\n");
  24.   printf("\nIf it concerns you, KILL2 processes its arguments in reverse order"
  25.          "\nfrom the command line.  However, it processes all arguments before beginning"
  26.          "\nits work.  Arguments may be in any order.");
  27.   fprintf(stderr,"\nKILL2 is copyright (c) 1992 by M. Kimes -- all rights reserved");
  28. }
  29.