home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
kill2.zip
/
kill2src.zip
/
sendhelp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-10
|
1KB
|
29 lines
#include <stdlib.h>
#include <stdio.h>
extern int majversion,minversion;
void sendhelp (void) {
printf("\nKILL2 "__DATE__" "__TIME__" v%d.%02d",majversion,minversion);
printf(" Usage: KILL2 -<switches> <files>"
"\nswitches:\n-L List only (default)\n-T Touch only\n-K Kill 'em (no death without this)"
"\n-E Exclude (-EAFILEN.AME excludes AFILEN.AME)"
"\n-D# Age in # days of files to delete (default = 0, all files)"
"\n-R Recurse subdirectories\n-A# All but newest # files"
"\n-- First dash is removed, then the argument is processed as a <file>"
"\n-? This help\n");
printf("\nWhere kill/touch/list/exclude filenames are given, wildcarded patterns may be"
"\nused. Paths ok in kill/touch/list filenames. Multiple patterns may be given."
"\n\"KILL2 -K -E*D.DAT -E*.EXE D*.* C:\\STUFF\\E*.*\" is a valid command line.\n");
printf("\nFiles beginning with \'@\' are considered list files (text files containing"
"\nlists of file patterns, one per line). Enter @@filename to work on a file"
"\nnamed @filename.\n");
printf("\nIf it concerns you, KILL2 processes its arguments in reverse order"
"\nfrom the command line. However, it processes all arguments before beginning"
"\nits work. Arguments may be in any order.");
fprintf(stderr,"\nKILL2 is copyright (c) 1992 by M. Kimes -- all rights reserved");
}