home *** CD-ROM | disk | FTP | other *** search
/ Best Objectech Shareware Selections / UNTITLED.iso / boss / util / cdro / 003 / usage.c < prev   
Encoding:
C/C++ Source or Header  |  1993-02-19  |  1.8 KB  |  31 lines

  1. #include <stdio.h>
  2.  
  3.  
  4. /* Print usage of program cdr */
  5.  
  6. void usage (void)
  7.  
  8. {
  9.     fprintf (stderr,"-i index.txt             -> index file\n");
  10.     fprintf (stderr,"-s regular expression    -> search for this regular expression \n");
  11.     fprintf (stderr,"-n -s regular expression -> don't match this regular expression\n");
  12.     fprintf (stderr,"-t target dir            -> directory to copy data to\n");
  13.     fprintf (stderr,"-e file name to extract  -> filenames to extract needs -u option\n");
  14.     fprintf (stderr,"-c                       -> copy data matched to target dir\n");
  15.     fprintf (stderr,"-u                       -> unpack data to target dir\n");
  16.     fprintf (stderr,"-d                       -> delete all files and sub directories in target dir\n");
  17.     fprintf (stderr,"-r                       -> force wipe of whole disk or current directory\n");
  18.     fprintf (stderr,"-o                       -> take all search options as an or function\n");
  19.     fprintf (stderr,"-b                       -> use this to create batch files\n");
  20.     fprintf (stderr,"-f                       -> use the file name only in search\n");
  21.     fprintf (stderr,"-h                       -> help\n");
  22.     fprintf (stderr,"-?                       -> help\n");
  23.     fprintf (stderr,"\nEnvironment variables : \n");
  24.     fprintf (stderr,"set CDROM=q:                       cdrom drive letter to use\n");
  25.     fprintf (stderr,"set TMPDIR=e:\\tmp                  default target directory instead of .\n");
  26.     fprintf (stderr,"set INDEX=c:\\simtel20\\index.txt    default index file\n");
  27.     fprintf (stderr,"set UNZIP=c:\\util\\pkunzip -d       default for zip files\n");
  28.     fprintf (stderr,"set UNARC=c:\\util\\pak x            default for arc files\n");
  29.     fprintf (stderr,"set POST=e:\\tbav\\tbscan e:\\tmp     if defined execute command\n");
  30.     fprintf (stderr,"                                   after unpacking or copying data\n");
  31. }