home *** CD-ROM | disk | FTP | other *** search
/ Shareware Gold 1 / The_Golden_ROM_Series_-_Shareware_Gold_Volume_1_Number_11_-_SK_89-301_-_1989.iso / BBS / LIB019.ARC / XD.HLP < prev    next >
Text File  |  1987-03-01  |  22KB  |  539 lines

  1. >>>
  2. ATTR
  3. -----------------------------------------------------------------
  4. Purpose:  Changes the file attribute of one or more files to the
  5. a new value.
  6.  
  7. Remarks:  Global filename characters are allowed in the filename
  8. and will cause all of the files matching each filename to be
  9. listed.  If no drive or path is given, then an error message will
  10. be issued and the program will be terminated.  If a directory
  11. name is input then all files in the directory will be offered for
  12. selection.
  13.  
  14. The Extended DOS program will ask for desired changes to the
  15. file attributes of the selected files.  Changes are allowed to
  16. several, but not all, of the attribute fields.  In particular,
  17. attribute characteristics CAN be modified for normal DOS files
  18. as follows:
  19.  
  20.   MODIFIABLE ATTRIBUTES         FIXED ATTRIBUTES
  21.   ---------------------------   ------------------------------
  22.   A - Archive bit               V - Volume Name
  23.   S - System file designation   D - Directory file designation
  24.   H - Hidden file designation
  25.   R - Read only designation
  26.  
  27. Thus it is NOT possible to make a standard file into a Directory
  28. or vice-versa, nor is it possible to give a Directory an A,S,H or
  29. R designation with Extended DOS.
  30.  
  31. In order to change one or more of the file attribute bits it is
  32. necessary to turn the bit `on' or `off' while leaving the
  33. remaining attribute bits alone.  An attribute bit can be turned
  34. `on' by preceding the bit letter with a `+', an a bit can be
  35. turned off by preceding the bit letter with a `-'.   For example,
  36. the command:
  37.  
  38.    +SR   will turn `on' the System and ReadOnly bits and,
  39.    -ASH  would turn `off' the Archive, System, and Hidden bits.
  40.  
  41. If the same attribute is included with both a `+' and `-'
  42. operator, or if the attribute letter is not included in either
  43. the `+' or `-' group, then no change will be made to that
  44. attribute bit.
  45.  
  46. As with all of the extended DOS commands, each filename that
  47. qualifies under the input name list will be presented separately
  48. for verification.  The listing will indicate the file's old
  49. attribute and the attribute that the file will have if the file
  50. is selected.
  51. >>>
  52. COPY
  53. -----------------------------------------------------------------
  54. Purpose: Duplicates files.  In addition, the copy command can
  55. assigned copied files a new name or can place the copied files in
  56. another directory or on another disk drive.
  57.  
  58. Remarks: Global filename characters are allowed in the filename
  59. list.  If more than one source file is specified, the target name
  60. must contain at least one wildcard character.  If no target path
  61. is given, the current drive and path are assumed.  Similarly, if
  62. only one source filename is listed the target path is assumed to
  63. be the current path and the target name is assumed to be the same
  64. as the source filename.
  65.  
  66. Warning: none of the standard DOS COPY command parameters (/A /B
  67. or /V) apply to the extended DOS COPY function (See your DOS
  68. manual for explanation of these parameters).
  69.  
  70. As with all of the extended DOS commands, each filename that
  71. qualifies under the filename list will be presented separately
  72. for verification.
  73. >>>
  74. TIME
  75. -----------------------------------------------------------------
  76. Purpose:  Changes the modification date and time of one or more
  77. files to the current date and time.
  78.  
  79. Remarks:  Global filename characters are allowed in the filename
  80. and will cause all of the files matching each filename to be
  81. listed.  If no drive or path is given, then an error message will
  82. be issued and the program will be terminated.  If a directory
  83. name is input then all files in the directory will be offered for
  84. selection.
  85.  
  86. The Extended DOS program will not modify date/times of files with
  87. hidden, System, Read-only, or Directory attributes.
  88.  
  89. As with all of the extended DOS commands, each filename that
  90. qualifies under the filename list will be presented separately
  91. for verification.
  92. >>>
  93. DEL
  94. -----------------------------------------------------------------
  95. Purpose:  Deletes (erases) one or more files.
  96.  
  97. Remarks: Global filename characters are allowed in the filename
  98. and will cause all of the files matching each filename to be
  99. listed.  If no drive or path is given, then the current drive and
  100. the current path are assumed.
  101.  
  102. The Extended DOS program will not delete files with Hidden,
  103. System, Read-only, or Directory attributes.  Note: directories
  104. can be erased with the extended DOS function KILL.
  105.  
  106. As with all of the extended DOS commands, each filename that
  107. qualifies under the filename list will be presented separately
  108. for verification.
  109. >>>
  110. KILL
  111. -----------------------------------------------------------------
  112. Purpose:  Removes (erases) one or more directories.
  113.  
  114. Remarks: Global filename characters are not allowed in the
  115. pathname.  If no drive or path is given, then an error will be
  116. posted and no action will be taken.
  117.  
  118. If a directory on the argument list is the current directory it
  119. will be removed and the current directory will be changed to the
  120. parent of the removed directory.
  121.  
  122. If a directory on the argument list has no files it will simply
  123. be removed exactly as if the standard DOS command RMDIR had been
  124. issued.
  125.  
  126. If a directory on the argument list contains files, a count of
  127. files by attribute type will be made and you will have the
  128. opportunity to list their names, to delete them all or to
  129. terminate removal of that directory.  If a directory has files
  130. that have Read-only, Hidden, or System attributes it will not be
  131. removed.
  132.  
  133. If a directory on the argument list has sub-directories, they
  134. will all be removed along with the listed directory, provided
  135. that they do not contain Read-only, Hidden or System files.
  136.  
  137. As with all of the extended DOS commands, each filename that
  138. qualifies under the filename list will be presented separately
  139. for verification.
  140. >>>
  141. LIST
  142. -----------------------------------------------------------------
  143. Purpose: Writes one or more files to the screen or to a printer.
  144. This routine adds a header which shows the filename, creation
  145. date and the current page number.
  146.  
  147. Remarks: Global filename characters are allowed in the filename
  148. and will cause all matching files to be listed.  If no drive or
  149. path is given, then the current drive and the current path are
  150. assumed.
  151.  
  152. After verification of files to be listed, an opportunity will be
  153. given to set a number of relevant parameters, including:
  154.  
  155. DEVICE: Output to screen or to a printer.
  156. TOP:    Number  of  blank  lines at the top of each page.
  157. PAGE:   Page length - number of rows per page.
  158. LEFT:   Number of spaces before first character on each line.
  159. LINE:   Number of characters printed after left margin.
  160. TAB:    Number of spaces for TAB expansion.
  161. SKIP:   Number of characters to skip at the start of each line.
  162. CLIP:   Number of characters to print from each input line.
  163. PAUSE:  Pause/do not pause at the page or screen breaks.
  164. HEAD:   Show/noshow header information at the top of each page.
  165. SET:    Decimal codes to be sent before start of listing.
  166.  
  167. Several parameters may be changed with a single entry.  e.g.
  168.  
  169.         dev=0 top=10 set=27,71 clip=60
  170.  
  171. Use of the equal signs and commas is optional, a "space" may be
  172. used instead.
  173. >>>
  174. MOVE
  175. -----------------------------------------------------------------
  176. Purpose:  Relocates files from one place to another.
  177.  
  178. Remarks: This function is exactly the same as the 'COPY' function
  179. except that the original file is destroyed after it has been
  180. replicated elsewhere.
  181.  
  182. Global filename characters are allowed in the filename list.  If
  183. more than one source file is specified, the target name must
  184. contain at least one wildcard character.  If no target path is
  185. given the current drive and path are assumed.  Similarly, if only
  186. one source filename is listed, the target path is assumed to be
  187. the current path and the target name are assumed to be the same
  188. as the source filename.
  189.  
  190. Warning: none of the standard DOS COPY command parameters (/A /B
  191. or /V) apply to the extended DOS MOVE function.
  192.  
  193. As with all of the extended DOS commands, each filename that
  194. qualifies under the filename list will be presented separately
  195. for verification.
  196. >>>
  197. UP
  198. -----------------------------------------------------------------
  199. Purpose:  To UPdate (refresh) the files in a drive or directory.
  200.  
  201. Remarks:  Global filename characters are allowed in the filename
  202. list.  If a directory name is specified, all files in that
  203. directory will be evaluated for possible updating.
  204.  
  205. The update function will take each qualifying filename in turn
  206. and search the current working directory and the current environ-
  207. ment path directories until a matching filename is found.  If the
  208. matching filename has a more current modification time, the
  209. program will copy it to the listed file.
  210.  
  211. This program is particularly useful for updating backup
  212. diskettes.
  213.  
  214. As with all of the extended DOS commands, each filename that
  215. qualifies under the filename list will be presented separately
  216. for verification.
  217. >>>
  218. REN
  219. -----------------------------------------------------------------
  220. Purpose:  Renames files or directories.
  221.  
  222. Remarks: Global filename characters are allowed in the filename
  223. list.  A destination target name is required.  The target name
  224. cannot exist as a file or directory.  The target path must exist,
  225. and the target drive must be the same as the source drive.  If a
  226. drive change is required, use the 'MOVE' function.
  227.  
  228. RENaming Directories:
  229. Only one directory can be RENamed at a time.  No wildcard
  230. characters are allowed in either the source directory name or the
  231. target directory name.  If the path doesn't change, it is not
  232. necessary to repeat the source path.
  233.  
  234. RENaming Files:
  235. If multiple files or sets of files are to be RENamed, the target
  236. name must contain at least one wildcard character in order to
  237. prevent assignment of more than one file to the target name.  If
  238. no drive or path is given, then the current drive and the current
  239. path are assumed.  Files can be relocated to another directory
  240. with the REName function, although the 'MOVE' function is
  241. preferred for this task.
  242.  
  243. As with all of the extended DOS commands, each filename that
  244. qualifies under the filename list will be presented separately
  245. for verification.
  246. >>>
  247. SEARCH
  248. -----------------------------------------------------------------
  249. Purpose: Search through files for a given string of characters
  250.  
  251. Remarks: During the program operation a prompt will be issued for
  252. input of a string of characters.  A string of up to 238 char-
  253. acters can be entered.  Entry is terminated when the Enter key is
  254. pressed.  Printable and non-printing characters may be entered.
  255. Characters may be entered using unshifted, shifted and control
  256. keys.  They may also be entered by pressing the Alt key and
  257. entering a 3 digit decimal code from the keypad.  Note: The NULL
  258. character (decimal 000) and the Enter character (decimal 013)
  259. cannot be entered without terminating the string.
  260.  
  261. Global filename characters are allowed in the filename
  262. and will cause all of the files matching each filename to be
  263. listed.  If no drive or path is given, then the current drive and
  264. the current path are assumed.
  265.  
  266. As with all of the extended DOS commands, each filename that
  267. qualifies under the filename list will be presented separately
  268. for verification.
  269. >>>
  270. WILDCARD USAGE:
  271. -----------------------------------------------------------------
  272. The extended DOS program uses the wildcard characters '?' and '*'
  273. in a similar but different manner as standard DOS.
  274.  
  275. Similarities:
  276.  
  277. '?'  represents  any  single character.  For example the
  278. designation '?abc.def' will accept files with any first character
  279. as long as the remainder of characters is 'abc.def'.
  280.  
  281. '*' fills the remainder of the filename or extension with '?'
  282. characters.  For example,  the designation 'abc*.*' is
  283. equivalent to the form 'abc?????.???'.
  284.  
  285. Differences:
  286.  
  287. The '*' designation can be imbedded within  filenames.  If  so,
  288. the characters before the '*' will lead the filename, and the
  289. characters after  the  '*'  designation will be set at the end of
  290. the filename.  For example,   the  designation   'ab*cd.efg'   is
  291. equivalent   to 'ab????cd.efg' and will match any of the
  292. following filenames:
  293.  
  294.        abxcd.efg       where 'x' is any character
  295.        abxxcd.efg
  296.        abxxxcd.efg
  297.        abxxxxcd.efg
  298. >>>
  299. DESTINATION NAMES:
  300. -----------------------------------------------------------------
  301. Some commands - like COPY, MOVE, REN - require a target spec-
  302. ification.  It is always assumed that the last filename on the
  303. argument list is the destination target.
  304.  
  305. Wildcard specifications in the destination name act as a template
  306. for modifying the names of the files being acted upon.  For
  307. example, the command:
  308.  
  309.        XD COPY *.BAT *.TAB
  310.  
  311. will duplicate all of the '.BAT' files and will give the copies
  312. the extension  '.TAB'.  In  this  example,  if  there are 3 files
  313. in the current directory named:
  314.  
  315.        ABC.BAT
  316.        DEF.BAT
  317.        GHI.BAT
  318.  
  319. they will be duplicated by the files:
  320.  
  321.        ABC.TAB
  322.        DEF.TAB
  323.        GHI.TAB
  324.  
  325. respectively.  The use of wildcards in the destination names is
  326. very intuitive.  A  little  experimentation  will show that the
  327. system is natural and easy to use.
  328.  
  329. A  mixture  of wildcard  character  and  ordinary text characters
  330. in destination names will produce either of two effects depending
  331. upon whether the '/P' parameter is specified.
  332.  
  333. Without '/P':
  334.  
  335.        Without specification of the /P (PREFIX) parameter,
  336.        expansion of wildcards in the target name is exactly  as
  337.        described  in the  WILDCARD section above.  For example,
  338.        The REN (rename) command:
  339.  
  340.             XD REN JKLMNO.EXT WXYZ.BAT ABC*.*
  341.  
  342.        will rename files JKLMN.EXT and WXYZ.BAT respectively to:
  343.  
  344.             ABCMNO.EXT and ABCZ.BAT
  345.  
  346.        In other  words,  the  characters  in  the  destination
  347.        name replace the corresponding characters in the input
  348.        filename.
  349.  
  350. With '/P':
  351.  
  352.        When the prefix parameter is specified, leading characters
  353.        in the destination name will be inserted before characters
  354.        from the  input  filename.  In  the  above  example,  if
  355.        the input command line is:
  356.  
  357.             XD REN JKLMNO.EXT WXYZ.BAT ABC*.* /P
  358.  
  359.        the input files will be renamed to:
  360.  
  361.             ABCJKLMN.EXT and ABCWXYZ.BAT
  362. >>>
  363. VERIFICATION:
  364. -----------------------------------------------------------------
  365. Every  command  requires  a  verification of the selected
  366. filenames.  That is, each qualified filename will be presented
  367. with a request "(y/n/x)?" which allows you to accept or reject
  368. that filename to be acted upon ("y" or "n"), or to accept that
  369. and all subsequent file names ("x").
  370.  
  371. To accept a filename as it is presented simply type 'y' to  the
  372. prompt for  that  filename.  For  convenience  in navigating
  373. through a long list of filenames,  several cursor keys can be
  374. used.  The  'Up'  and 'Down'   arrow   keys   move  to  the
  375. previous  and  next  filename respectively.  Similarly,  the
  376. 'Home' and 'End'  keys  move  to  the start and end of the
  377. filename list.  Finally,  the 'PgUp' and 'PgDn' keys move up or
  378. down about half a screen full.
  379.  
  380. Selection of all the files in a long list  can  be  accomplished
  381. by typing 'x' or by holding  down the 'y' key.  In either case,
  382. it will stop automatically at the bottom of the list.
  383.  
  384. An added benefit of the verification  procedure  is  that  it
  385. allows experimentation  with  the extended DOS commands without
  386. worry about accidentally damaging files  -  simply  enter  'n'
  387. to  all  of  the verification requests and no action will be
  388. taken on any files.
  389. >>>
  390. PARAMETERS:
  391. -----------------------------------------------------------------
  392. At the present time there are 6 parameters  allowed  on  a
  393. command line.
  394.  
  395.    /A - will list filename attributes during the verification
  396.         procedure e.g.
  397.  
  398.         A..... Means that the file Archive bit is turned on,
  399.         .D.... Means that this filename is a sub Directory,
  400.         ..V... Means that this is the Volume name,
  401.         ...S.. Means that this is a System file,
  402.         ....H. Means that this is a Hidden file,
  403.         .....R Means that this file is 'Read-only',
  404.  
  405.         (note: in actual practice the Volume designation will
  406.                never be shown because of DOS limitations),
  407.  
  408.    /C - used with the SEARCH function only, this parameter will
  409.         cause the program to search for the text in exactly the
  410.         case in which it is entered.  Without this parameter,
  411.         extended DOS will search for upper case, lower case and
  412.         mixed case versions of the requested text.
  413.  
  414.    /E - used with the SEARCH function only, this parameter will
  415.         cause the program results to be echoed to the standard
  416.         printer port.  In addition, a page feed will be sent to
  417.         the standard printer port at the conclusion of the
  418.         program.
  419.  
  420.    /M - will invoke extended DOS menu at termination of program
  421.         (this parameter is automatically set whenever extended
  422.         DOS is run from the menu),
  423.  
  424.    /P - will enable the PREFIX function during creation of the
  425.         destination filenames.  (See the above section on
  426.         DESTINATION NAMES).
  427.  
  428.    /S - will sort the filenames before they are acted upon,
  429.  
  430.  
  431. These parameters can be placed anywhere on the command line after
  432. the function name and must be separated by spaces from words
  433. around them.  For example, the following command line is valid.
  434.  
  435.         XD MOVE /A *.BAT *.TXT /PS A:\Z*.*
  436.  
  437. This will move all of the '.BAT' files and all of the '.TXT'
  438. files in the current directory to drive A:.  Moreover, it will
  439. present the filenames for verification in sorted order (/S), and
  440. with attributes shown (/A).  In addition it will prefix (/P) each
  441. transferred filenames with the letter 'Z' followed by as many of
  442. the original characters as possible.  Note that more than one
  443. parameter may be set after the '/'.
  444. >>>
  445. INTRODUCTION
  446. -----------------------------------------------------------------
  447. Extended DOS (XD) provides some useful extensions to the standard
  448. DOS commands.  In particular, it adds three useful features and
  449. several new functions that are not in standard DOS.
  450.  
  451. Extended features:
  452.  
  453.         1: Menu support.  If you are not sure of an Extended DOS
  454.            command simply type:
  455.  
  456.            XD
  457.  
  458.            This will cause a master menu to appear that has
  459.            context sensitive help to guide you in developing the
  460.            correct command line.
  461.  
  462.         2: Before the XD command is executed, you will be shown a
  463.            list of all the filenames that will be acted upon, and
  464.            you will be able to select from the list, those files
  465.            that you want included in the operation.  For example,
  466.            if you enter the command "XD DEL *.*" all of the files
  467.            in the current directory will be listed on the screen.
  468.            You will be able to pick from the list those files
  469.            that you want to delete.
  470.  
  471.         3: You may put many file specifications on one command
  472.            line.  For example, you may want to delete some of the
  473.            '.BAT' files and some of the '.BAK' files and some of
  474.            the files which start with the letters 'AH'.  An
  475.            appropriate command line might be:
  476.  
  477.            XD DEL *.BAT *.BAK AH*.*
  478.  
  479.            Extended DOS will present all of the files which match
  480.            any of the three specifications.
  481.  
  482.            In some cases a target (or destination) file
  483.            specification must also be given e.g. with the copy
  484.            command.  This is no problem, just be sure that the
  485.            target specification is the last one on the command
  486.            line.
  487.  
  488. Extended DOS functions:
  489.  
  490. Detailed discussion of all of these functions can be located
  491. through the help menu so only a brief summary is presented here.
  492. The current functions are:
  493.  
  494.  
  495.         ATTR - The Attribute function allows you to change the
  496.         attributes of files.  For example, files can be made read
  497.         only, hidden, etc..
  498.  
  499.         COPY - This function copies files from one drive\path to
  500.         another.
  501.  
  502.         DEL  - The Delete function erases files from the disk.
  503.  
  504.         KILL - The kill function allows you to specify directory
  505.         names to be removed from the disk.  This function will
  506.         erase all files and remove all subdirectories that are
  507.         included within the specified directory name.  As a
  508.         safety measure, you will be given a chance to verify
  509.         erasure of any files if they are present.
  510.  
  511.         LIST - The List function types a file to the screen or to
  512.         the printer using a number of useful options.  It
  513.         automatically inserts page headings and form feeds if
  514.         required.
  515.  
  516.         MOVE - The Move function is equivalent to a combined
  517.         Copy-Delete function.  Files are transferred from one
  518.         drive or directory to another and are removed from their
  519.         original location.
  520.  
  521.         REN - The Rename function allows filenames to be changed.
  522.         With DOS versions 3.0 and greater directories can also be
  523.         renamed.
  524.  
  525.         SEARCH - This function allows you to search files for
  526.         text patterns.  The results of the search are shown in
  527.         context and may be echoed to the printer.
  528.  
  529.         TIME - The Date/Time function allows you to modify the
  530.         time and date of files.
  531.  
  532.         UP   - The Update function reads the filename list from
  533.         the target drive\path directory.  It then searches the
  534.         current PATH to find more current versions of the target
  535.         files.  It then copies the more recent versions of the
  536.         files to the target drive\path.  This function is
  537.         particularly useful for updating backup diskettes.
  538. >>>
  539.