home *** CD-ROM | disk | FTP | other *** search
/ Compu-Fix / Compu-Fix.iso / referenz / text / int_cmds.txt < prev    next >
Encoding:
Text File  |  1993-03-01  |  10.1 KB  |  374 lines

  1.  
  2.  
  3.                              INTERNAL DOS COMMANDS
  4.  
  5.  
  6.  
  7.  
  8. BREAK [ON | OFF]
  9.  
  10.         Sets or clears extended CTRL+C checking.
  11.  
  12.         Type BREAK without a parameter to display the current BREAK setting.
  13.  
  14.  
  15. CALL [drive:][path]filename [batch-parameters]
  16.  
  17.         Calls one batch program from another.
  18.  
  19.         batch-parameters   Specifies any command-line information required by
  20.                            the batch program.
  21.  
  22.  
  23. CHDIR [drive:][path]
  24. CHDIR [..]
  25. CD [drive:][path]
  26. CD [..]
  27.  
  28.         Displays the name of or changes the current directory.
  29.  
  30.         ..   Specifies that you want to change to the parent directory.
  31.  
  32.         Type CD drive: to display the current directory in the specified
  33.         drive.
  34.  
  35.         Type CD without parameters to display the current drive and
  36.         directory.
  37.  
  38.  
  39. CHCP [nnn]
  40.  
  41.         Displays or sets the active code page number.
  42.  
  43.         nnn   Specifies a code page number.
  44.  
  45.         Type CHCP without a parameter to display the active code page number.
  46.  
  47.  
  48. CLS
  49.  
  50.         Clears the screen.
  51.  
  52.  
  53. COMMAND [[drive:]path] [device] [/E:nnnnn] [/P] [/C string] [/MSG]
  54.  
  55.         Starts a new instance of the MS-DOS command interpreter.
  56.  
  57.         [drive:]path    Specifies the directory containing COMMAND.COM file.
  58.         device          Specifies the device to use for command input and
  59.                         output.
  60.         /E:nnnnn        Sets the initial environment size to nnnnn bytes.
  61.         /P              Makes the new command interpreter permanent (can't
  62.                         exit).
  63.         /C string       Carries out the command specified by string, and
  64.                         then stops.
  65.         /MSG            Specifies that all error messages be stored in
  66.                         memory. You need to specify /P with this switch.
  67.  
  68.  
  69. COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination
  70.      [/A | /B]] [/V]
  71.  
  72.         Copies one or more files to another location.
  73.  
  74.         source       Specifies the file or files to be copied.
  75.         /A           Indicates an ASCII text file.
  76.         /B           Indicates a binary file.
  77.         destination  Specifies the directory and/or filename for the new
  78.                      file(s).
  79.         /V           Verifies that new files are written correctly.
  80.  
  81.         To append files, specify a single file for destination, but multiple
  82.         files for source (using wildcards or file1+file2+file3 format).
  83.  
  84.  
  85. CTTY device
  86.  
  87.         Changes the terminal device used to control your system.
  88.  
  89.         The terminal device you want to use, such as COM1.
  90.  
  91.  
  92. DATE [date]
  93.  
  94.         Displays or sets the date.
  95.  
  96.         Type DATE without parameters to display the current date setting and
  97.         a prompt for a new one.  Press ENTER to keep the same date.
  98.  
  99.  
  100. DEL [drive:][path]filename [/P]
  101. ERASE [drive:][path]filename [/P]
  102.  
  103.         Deletes one or more files.
  104.  
  105.         [drive:][path]filename   Specifies the file(s) to delete.  Specify
  106.                                  multiple files by using wildcards.
  107.         /P                       Prompts for confirmation before deleting
  108.                                  each file.
  109.  
  110.  
  111.  
  112. DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]]
  113.     [/O[[:]sortorder]] [/S] [/B] [/L]
  114.  
  115.         Displays a list of files and subdirectories in a directory.
  116.  
  117.         [drive:][path][filename]   Specifies drive, directory, and/or files
  118.                                    to list.
  119.         /P                         Pauses after each screenful of
  120.                                    information.
  121.         /W                         Uses wide list format.
  122.         /A                         Displays files with specified attributes.
  123.         attributes                 D  Directories
  124.                                    R  Read-only files
  125.                                    H  Hidden files
  126.                                    A  Files ready for archiving
  127.                                    S  System files
  128.                                    -  Prefix meaning "not"
  129.         /O                         List by files in sorted order.
  130.         sortorder                  N  By name (alphabetic)
  131.                                    E  By extension (alphabetic)
  132.                                    S  By size (smallest first)
  133.                                    D  By date & time (earliest first)
  134.                                    G  Group directories first
  135.                                    -  Prefix to reverse order
  136.         /S                         Displays files in specified directory and
  137.                                    all subdirectories.
  138.         /B                         Uses bare format (no heading information
  139.                                    or summary).
  140.         /L                         Uses lowercase.
  141.  
  142.  
  143. ECHO [ON | OFF]
  144. ECHO [message]
  145.  
  146.         Displays messages, or turns command-echoing on or off.
  147.  
  148.         Type ECHO without parameters to display the current echo setting.
  149.  
  150.  
  151. EXIT
  152.  
  153.         Quits the COMMAND.COM program (command interpreter).
  154.  
  155.  
  156. FOR variable IN (set) DO command [command-parameters]
  157.  
  158.         Runs a specified command for each file in a set of files.
  159.  
  160.         variable            Specifies a replaceable parameter.
  161.         set                 Specifies a set of one or more files.  Wildcards
  162.                             may be used.
  163.         command             Specifies the command to carry out for each file.
  164.         command-parameters  Specifies parameters or switches for the
  165.                             specified command.
  166.  
  167.         To use the FOR command in a batch program, specify %%variable instead
  168.         of %variable.
  169.  
  170.  
  171. GOTO label
  172.  
  173.         Directs MS-DOS to a labelled line in a batch program.
  174.  
  175.         label   Specifies a text string used in the batch program as a label.
  176.                 You type a label on a line by itself, beginning with a colon.
  177.  
  178.  
  179. IF [NOT] ERRORLEVEL number command
  180. IF [NOT] string1==string2 command
  181. IF [NOT] EXIST filename command
  182.  
  183.         Performs conditional processing in batch programs.
  184.  
  185.         NOT               Specifies that MS-DOS should carry out the command
  186.                           only if the condition is false.
  187.         ERRORLEVEL
  188.         number            Specifies a true condition if the last program run
  189.                           returned an exit code equal to or greater than the
  190.                           number specified.
  191.         command           Specifies the command to carry out if the condition
  192.                           is met.
  193.         string1==string2  Specifies a true condition if the specified text
  194.                           strings match.
  195.         EXIST filename    Specifies a true condition if the specified
  196.                           filename exists.
  197.  
  198.  
  199. LH [drive:][path]filename [parameters]
  200. LOADHIGH [drive:][path]filename [parameters]
  201.  
  202.         Loads a program into the upper memory area.
  203.  
  204.         parameters   Specifies any command-line information required by the
  205.                      program you want to load.
  206.  
  207.  
  208. MKDIR [drive:]path
  209. MD [drive:]path
  210.  
  211.         Creates a directory.
  212.  
  213.  
  214. PATH [[drive:]path[;...]]
  215. PATH ;
  216.  
  217.         Displays or sets a search path for executable files.
  218.  
  219.         Type PATH ; to clear all search-path settings and direct MS-DOS to
  220.         search only in the current directory.
  221.         Type PATH without parameters to display the current path.
  222.  
  223.  
  224. PAUSE
  225.  
  226.         Suspends processing of a batch program and displays the message
  227.         "Press any key to continue...."
  228.  
  229.  
  230. PROMPT [text]
  231.  
  232.         Changes the MS-DOS command prompt.
  233.  
  234.         text    Specifies a new command prompt.
  235.  
  236.         Prompt can be made up of normal characters and the following special
  237.         codes:
  238.  
  239.                $Q   = (equal sign)
  240.                $$   $ (dollar sign)
  241.                $T   Current time
  242.                $D   Current date
  243.                $P   Current drive and path
  244.                $V   MS-DOS version number
  245.                $N   Current drive
  246.                $G   > (greater-than sign)
  247.                $L   < (less-than sign)
  248.                $B   | (pipe)
  249.                $H   Backspace (erases previous character)
  250.                $E   Escape code (ASCII code 27)
  251.                $_   Carriage return and linefeed
  252.  
  253.         Type PROMPT without parameters to reset the prompt to the default
  254.         setting.
  255.  
  256.  
  257. RMDIR [drive:]path
  258. RD [drive:]path
  259.  
  260.         Removes (deletes) a directory.
  261.  
  262.  
  263. REM [comment]
  264.  
  265.         Records comments (remarks) in a batch file or CONFIG.SYS.
  266.  
  267.  
  268. REN [drive:][path]filename1 filename2
  269. RENAME [drive:][path]filename1 filename2
  270.  
  271.         Renames a file or files.
  272.  
  273.         Note that you cannot specify a new drive or path for your destination
  274.         file.
  275.  
  276.  
  277. SET [variable=[string]]
  278.  
  279.         Displays, sets, or removes MS-DOS environment variables.
  280.  
  281.         variable  Specifies the environment-variable name.
  282.         string    Specifies a series of characters to assign to the variable.
  283.  
  284.         Type SET without parameters to display the current environment
  285.         variables.
  286.  
  287.  
  288. SHIFT
  289.  
  290.         Changes the position of replaceable parameters in a batch file.
  291.  
  292.  
  293.  
  294. TIME [time]
  295.  
  296.         Displays or sets the system time.
  297.  
  298.         Type TIME with no parameters to display the current time setting and
  299.         a prompt for a new one.  Press ENTER to keep the same time.
  300.  
  301.  
  302. TYPE [drive:][path]filename
  303.  
  304.         Displays the contents of a text file.
  305.  
  306.         [drive:][path]filename   Specifies the file to display.
  307.  
  308. VER
  309.  
  310.         Displays the DOS version.
  311.  
  312.  
  313. VERIFY [ON | OFF]
  314.  
  315.         Tells MS-DOS whether to verify that your files are written correctly
  316.         to a disk.
  317.  
  318.         Type VERIFY without a parameter to display the current VERIFY
  319.         setting.
  320.  
  321.  
  322. VOL [drive:]
  323.  
  324.         Displays the disk volume label and serial number, if they exist.
  325.  
  326.  
  327.  
  328.  
  329. BRIEF LISTING
  330. **************************************
  331. BREAK
  332. CALL
  333. CD
  334. CHCP
  335. CHDIR
  336. CLS
  337. COPY
  338. CTTY
  339. DATE
  340. DEL
  341. DIR
  342. ECHO
  343. ERASE
  344. ERRORLEVEL
  345. EXIST
  346. EXIT
  347. FOR
  348. GOTO
  349. IF
  350. LH
  351. LOADHIGH
  352. MD
  353. MKDIR
  354. NOT
  355. PATH
  356. PAUSE
  357. PROMPT
  358. RD
  359. REM
  360. REN
  361. RENAME
  362. RMDIR
  363. SET
  364. SHIFT
  365. TIME
  366. TRUENAME
  367. TYPE
  368. VER
  369. VERIFY
  370. VOL
  371.  
  372.  
  373.  
  374.