home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / DISK / MCP.ZIP / doc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-17  |  8.9 KB  |  209 lines

  1. #define FULL_DOC1 \
  2. "mcp - copy files\
  3. \nVersion 1.02, Copyright (c) 1991, Monk Software\
  4. \n\
  5. \nGeneral Idea:\
  6. \n\
  7. \n    Mcp is a directory-oriented copy program.  It gives you better\
  8. \n    control over which files you can copy or move.  In the simplest\
  9. \n    case, all files are copied from the source directory to the target\
  10. \n    directory.  A list of files can be specified to limit what is\
  11. \n    copied.  This list can have wild-card file specifications (default\
  12. \n    list = *.*) and may be applied against either the source or target\
  13. \n    directory (default = source).  File dates and times can be used to\
  14. \n    limit the file list.  Recursive copies are also supported.\
  15. \n\
  16. \nUsage:\
  17. \n\
  18. \n    mcp [-abcdfghimnorstvw?] source_dir target_dir [file_list]\
  19. \n\
  20. \nOptions:\
  21. \n\
  22. \n    Multiple criteria options ('-a', '-d', '-n', '-o', and '-w') are\
  23. \n    AND'ed together.  For example, specifying '-an' means copy the\
  24. \n    source files which are newer and have the archive bit set.  If\
  25. \n    either condition is false, the copy will not be done.  If you wish\
  26. \n    to copy either the newer files or the files with the archive bit\
  27. \n    set, just do two separate 'mcp' commands (i.e. 'mcp -a' followed\
  28. \n    by 'mcp -n').\
  29. \n\
  30. \n    The options are described below:\
  31. \n\
  32. \n    -a - Use archive bit\
  33. \n        Copy only files which have the archive bit set.  Once the copy\
  34. \n        is complete, the archive bit for the source file will be\
  35. \n        turned off.\
  36. \n\
  37. \n    -b - Batch mode.\
  38. \n        Turn off all interactive prompts.  Where questions are\
  39. \n        normally asked, the following default actions are taken\
  40. \n        instead.  If the target directory does not exist, try to\
  41. \n        create it.  If a target file is read-only, delete the target\
  42. \n        and re-try the copy.  Also, if the target device fills up, the\
  43. \n        program simply prints a message and aborts.\
  44. \n\
  45. \n    -c - Check\
  46. \n        Check the operation of the 'mcp' command without actually\
  47. \n        copying any files.  This mode sets the verbose options.\
  48. \n\
  49. \n    -d [boa]mm/dd/yy - Date\
  50. \n        Copy files based on the date that they were last changed.\
  51. \n        This flag takes one argument starting with the letters 'b',\
  52. \n        'o', or 'a', followed by the date in the form, mm/dd/yy.  The\
  53. \n        prefix 'b' stands for 'before' but not including the specified\
  54. \n        date.  The prefix 'o' stands for 'on' the specified date, and\
  55. \n        'a' stands for 'after' the specified date.  The date ranges\
  56. \n        specified using the 'a' and 'b' prefixes are 'and-ed'\
  57. \n        together.  The 'o' dates are then 'or-ed' with the result.\
  58. \n        For example to specify all files last-changed during March,\
  59. \n        you could type:\
  60. \n            mcp -vd ao3/1/91 -d b4/1/91 . a:\
  61. \n"
  62.  
  63. #define FULL_DOC2 "\
  64. \n\
  65. \n    -f file_name - File\
  66. \n        Get the file list from the file which is specified as an\
  67. \n        argument following the '-f' flag.  If the file_name is \"-\"\
  68. \n        then the file list will come from standard input.\
  69. \n\
  70. \n    -g - Gather\
  71. \n        Gather the files from the source directory and all its\
  72. \n        subdirectories into the one target directory.\
  73. \n\
  74. \n    -h - Hidden\
  75. \n        Copy hidden files as well as non-hidden files.\
  76. \n\
  77. \n    -i - Interactive\
  78. \n        Interactively ask the user if he wishes to copy each file,\
  79. \n        before the copy occurs.\
  80. \n\
  81. \n    -m - Move\
  82. \n        Removes all copied files from the source directory.\
  83. \n\
  84. \n    -n - Newer\
  85. \n        Copy only newer files.  If the source file already has a copy\
  86. \n        in the target directory, then the copy or move only occurs if\
  87. \n        the source file has a later date/time stamp then the target\
  88. \n        copy.  If a source file does not already exist in the target\
  89. \n        directory, then the source file is copied. This option can be\
  90. \n        handy for doing fast backups.\
  91. \n\
  92. \n    -o - Older\
  93. \n        Copy only older files.  If the source file already has a copy\
  94. \n        in the target directory, then the copy or move only occurs if\
  95. \n        the source file has an earlier date/time stamp then the target\
  96. \n        copy.  If a source file does not already exist in the target\
  97. \n        directory, then the source file is copied. This option can be\
  98. \n        handy for quickly restoring backups.\
  99. \n\
  100. \n    -no - Not On target\
  101. \n        Copy only if the source file does not exist in the target\
  102. \n        directory.  This is a trick that uses the '-n' and '-o'\
  103. \n        options.\
  104. \n\
  105. \n    -r - Recursive\
  106. \n        Recursively copy all of the subdirectories of the source\
  107. \n        directory.  Subdirectories that don't already exist under the\
  108. \n        target directory are created.\
  109. \n\
  110. \n    -s - Source\
  111. \n        Apply the file list to the source directory. This is the\
  112. \n        default.  The alternative is '-t'.\
  113. \n\
  114. \n    -t - Target\
  115. \n        Apply the file list to the target directory. For example,\
  116. \n        typing 'mcp -t . a:', would copy only those files in the\
  117. \n        current directory which were already on the 'A' drive.  This\
  118. \n        is handy for doing backups.\
  119. \n\
  120. \n    -v - Verbose\
  121. \n        Report all files that are copied or moved.\
  122. \n\
  123. \n    -vv - Very Verbose\
  124. \n        Report all files that are copied or not copied.\
  125. \n"
  126.  
  127. #define FULL_DOC3 "\
  128. \n    -w [ba]hh:mm[pa] - When\
  129. \n        Copy files based on the time that they were last changed.\
  130. \n        This flag takes one argument starting with the letters 'b', or\
  131. \n        'a', followed by the time in the form, hh:mm[ap].  The prefix\
  132. \n        'b' stands for 'before' but not including the specified time.\
  133. \n        and the prefix 'a' stands for 'after' the specified date.  The\
  134. \n        time ranges specified using the 'a' and 'b' prefixes are\
  135. \n        'and-ed' together.  For example to specify all files\
  136. \n        last-changed after 10:00pm but before 11:00pm you could type:\
  137. \n            mcp -vt a10:00p -t b11:00p . a:\
  138. \n        If this option is used without the date option, then the\
  139. \n        current system date is assumed.\
  140. \n\
  141. \n    -?\
  142. \n        Print full documentation and exit.  You are here!\
  143. \n\
  144. \nDisk Overflow:\
  145. \n\
  146. \n    If the destination drive is full during a copy, then mcp will\
  147. \n    pause and allow the user to change diskettes.  If the user\
  148. \n    specified '-o', '-n', or '-t' then she will not be able to change\
  149. \n    floppies.  This is because the original floppy was used to\
  150. \n    determine which files to copy.\
  151. \n\
  152. \nFile List:\
  153. \n\
  154. \n    If not specified, the default file list is '*.*'.  Any files\
  155. \n    prefixed with '-' will be excluded from the file list.  For\
  156. \n    example, to copy all files in a directory except a file called\
  157. \n    'junk' or those with a '.obj' suffix, you could type:\
  158. \n        mcp -v . a: *.* -junk -*.obj\
  159. \n    or\
  160. \n        mcp -v . a: -junk -*.obj\
  161. \n\
  162. \n    To copy a file starting with '-', use a prefix of '\\'.  For\
  163. \n    example, to copy a file named '-copy.me', you could type:\
  164. \n        mcp -v . a: \\-copy.me\
  165. \n\
  166. \n    On a recursive copy, the file list is applied recursively to the\
  167. \n    source or target (with '-t' option) directory and all\
  168. \n    subdirectories.\
  169. \n\
  170. \nNonexistent Target Directory:\
  171. \n\
  172. \n    If the target directory does not exist, either the user will be\
  173. \n    asked if she wishes to create it or, if the '-b' option is\
  174. \n    specified, it will be created automatically.\
  175. \n\
  176. \nRead-only Target File:\
  177. \n\
  178. \n    By default, the user will be asked 'do you wish to delete the\
  179. \n    target and re-try the copy (yes/no) ? '.  If '-b' is specified, a\
  180. \n    'yes' answer to this question will be assumed.\
  181. \n"
  182.  
  183. #define FULL_DOC4 "\
  184. \nLicense:\
  185. \n\
  186. \n    This program is free software; you can redistribute it and/or modify\
  187. \n    it under the terms of the GNU General Public License as published by\
  188. \n    the Free Software Foundation; either version 1, or (at your option)\
  189. \n    any later version.\
  190. \n\
  191. \n    This program is distributed in the hope that it will be useful,\
  192. \n    but WITHOUT ANY WARRANTY; without even the implied warranty of\
  193. \n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\
  194. \n    GNU General Public License for more details.\
  195. \n\
  196. \n    You should have received a copy of the GNU General Public License\
  197. \n    along with this program; if not, write to the Free Software\
  198. \n    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\
  199. \n\
  200. \n    Please send bug reports and/or suggestions to:\
  201. \n        Monk Software\
  202. \n        2464 El Camino Real, #404\
  203. \n        Santa Clara, CA 95051\
  204. \n    Include the name of the program, version and operating system.\
  205. \n\
  206. \n    Bug reports and other comments can also be sent by e-mail on the\
  207. \n        Internet to : monk@netcom.com\
  208. \n        UUCP: uunet!netcom.com!monk\n"
  209.