{"id":166,"date":"2011-11-22T22:51:44","date_gmt":"2011-11-22T22:51:44","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=166"},"modified":"2011-11-22T22:51:44","modified_gmt":"2011-11-22T22:51:44","slug":"command-line-utilities","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=166","title":{"rendered":"Command Line Utilities"},"content":{"rendered":"<h1>Attrib<\/h1>\n<p>Displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, <strong>attrib<\/strong> displays attributes of all files in the current directory.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>attrib<\/strong> [{<strong>+r<\/strong> | <strong>-r<\/strong>}] [{<strong>+a<\/strong> | <strong>-a<\/strong>}] [{<strong>+s<\/strong> | <strong>-s<\/strong>}] [{<strong>+h<\/strong> | <strong>-h<\/strong>}] [[<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName<\/em>] [<strong>\/s<\/strong>[<strong>\/d<\/strong>]]<\/p>\n<h2>Parameters<\/h2>\n<p><strong>+r<\/strong><\/p>\n<p>Sets the read-only file attribute.<\/p>\n<p><strong>-r <\/strong><\/p>\n<p>Clears the read-only file attribute.<\/p>\n<p><strong>+a <\/strong><\/p>\n<p>Sets the archive file attribute.<\/p>\n<p><strong>-a <\/strong><\/p>\n<p>Clears the archive file attribute.<\/p>\n<p><strong>+s <\/strong><\/p>\n<p>Sets the system file attribute.<\/p>\n<p><strong>-s <\/strong><\/p>\n<p>Clears the system file attribute.<\/p>\n<p><strong>+h <\/strong><\/p>\n<p>Sets the hidden file attribute.<\/p>\n<p><strong>-h <\/strong><\/p>\n<p>Clears the hidden file attribute.<\/p>\n<p>[<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName<\/em><\/p>\n<p>Specifies the location and name of the directory, file, or set of files for which you want to display or change attributes. You can use wildcard characters (that is, ? and *) in the <em>FileName<\/em> parameter to display or change the attributes for a group of files.<\/p>\n<p><strong>\/s<\/strong><\/p>\n<p>Applies <strong>attrib<\/strong> and any command-line options to matching files in the current directory and all of its subdirectories.<\/p>\n<p><strong>\/d<\/strong><\/p>\n<p>Applies <strong>attrib<\/strong> and any command-line options to directories.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Cmd<\/h1>\n<p>Starts a new instance of the command interpreter, Cmd.exe. Used without parameters, <strong>cmd<\/strong> displays the version and copyright information of the operating system.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>cmd<\/strong> [{<strong>\/c<\/strong> | <strong>\/k<\/strong>}] [<strong>\/s<\/strong>] [<strong>\/q<\/strong>] [<strong>\/d<\/strong>] [{<strong>\/a<\/strong> | <strong>\/u<\/strong>}] [<strong>\/t:<\/strong><em>FG<\/em>] [<strong>\/e:<\/strong>{<strong>on<\/strong> | <strong>off<\/strong>}] [<strong>\/f:<\/strong>{<strong>on<\/strong> | <strong>off<\/strong>}] [<strong>\/v:<\/strong>{<strong>on<\/strong> | <strong>off<\/strong>}] [<em>String<\/em>]<\/p>\n<h2>Parameters<\/h2>\n<p><strong>\/c<\/strong><\/p>\n<p>Carries out the command specified by <em>String<\/em> and then stops.<\/p>\n<p><strong>\/k <\/strong><\/p>\n<p>Carries out the command specified by <em>String<\/em> and continues.<\/p>\n<p><strong>\/s<\/strong><\/p>\n<p>Modifies the treatment of <em>String<\/em> after <strong>\/c<\/strong> or<strong> \/k<\/strong>.<\/p>\n<p><strong>\/q <\/strong><\/p>\n<p>Turns the echo off.<\/p>\n<p><strong>\/d<\/strong><\/p>\n<p>Disables execution of AutoRun commands.<\/p>\n<p><strong>\/a <\/strong><\/p>\n<p>Formats internal command output to a pipe or a file as American National Standards Institute (ANSI).<\/p>\n<p><strong>\/u <\/strong><\/p>\n<p>Formats internal command output to a pipe or a file as Unicode.<\/p>\n<p><strong>\/t:<\/strong><em>FG<\/em><\/p>\n<p>Sets the foreground <em>F<\/em> and background <em>G<\/em> colors. The following tables lists valid hexadecimal digits that you can use as the values for <em>F<\/em> and <em>G<\/em>.<\/p>\n<table border=\"0\" cellpadding=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><strong>Value<\/strong><\/td>\n<td><strong>Color<\/strong><\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>Black<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>Blue<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Green<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Aqua<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>Red<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>Purple<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>Yellow<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>White<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>Gray<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>Light blue<\/td>\n<\/tr>\n<tr>\n<td>A<\/td>\n<td>Light green<\/td>\n<\/tr>\n<tr>\n<td>B<\/td>\n<td>Light aqua<\/td>\n<\/tr>\n<tr>\n<td>C<\/td>\n<td>Light red<\/td>\n<\/tr>\n<tr>\n<td>D<\/td>\n<td>Light purple<\/td>\n<\/tr>\n<tr>\n<td>E<\/td>\n<td>Light yellow<\/td>\n<\/tr>\n<tr>\n<td>F<\/td>\n<td>Bright white<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\/e:on<\/strong><\/p>\n<p>Enables command extensions.<\/p>\n<p><strong>\/e:off<\/strong><\/p>\n<p>Disables commands extensions.<\/p>\n<p><strong>\/f:on<\/strong><\/p>\n<p>Enables file and directory name completion.<\/p>\n<p><strong>\/f:off<\/strong><\/p>\n<p>Disables file and directory name completion.<\/p>\n<p><strong>\/v:on<\/strong><\/p>\n<p>Enables delayed environment variable expansion.<\/p>\n<p><strong>\/v:off<\/strong><\/p>\n<p>Disables delayed environment variable expansion.<\/p>\n<p><em>String<\/em><\/p>\n<p>Specifies the command you want to carry out.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Copy<\/h1>\n<p>Copies one or more files from one location to another.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>copy<\/strong> [<strong>\/d<\/strong>] [<strong>\/v<\/strong>] [<strong>\/n<\/strong>] [{<strong>\/y<\/strong> | <strong>\/-y<\/strong>}] [<strong>\/z<\/strong>] [{<strong>\/a<\/strong> | <strong>\/b<\/strong>}] <em>Source<\/em> [{<strong>\/a<\/strong> | <strong>\/b<\/strong>}] [<strong>+<\/strong> <em>Source<\/em> [{<strong>\/a<\/strong> | <strong>\/b<\/strong>}] [<strong>+<\/strong> &#8230;]] [<em>Destination<\/em> [{<strong>\/a<\/strong> | <strong>\/b<\/strong>}]]<\/p>\n<h2>Parameters<\/h2>\n<p><strong>\/d<\/strong><\/p>\n<p>Allows the encrypted files being copied to be saved as decrypted files at the destination.<\/p>\n<p><strong>\/v<\/strong><\/p>\n<p>Verifies that new files are written correctly.<\/p>\n<p><strong>\/n<\/strong><\/p>\n<p>Uses a short file name, if available, when copying a file with a name longer than eight characters, or with a file extension longer than three characters.<\/p>\n<p><strong>\/y<\/strong><\/p>\n<p>Suppresses prompting to confirm that you want to overwrite an existing destination file.<\/p>\n<p><strong>\/-y<\/strong><\/p>\n<p>Prompts you to confirm that you want to overwrite an existing destination file.<\/p>\n<p><strong>\/z<\/strong><\/p>\n<p>Copies networked files in restartable mode.<\/p>\n<p><strong>\/a<\/strong><\/p>\n<p>Indicates an ASCII text file.<\/p>\n<p><strong>\/b<\/strong><\/p>\n<p>Indicates a binary file.<\/p>\n<p><em>Source<\/em><\/p>\n<p>Required. Specifies the location from which you want to copy a file or set of files. <em>Source<\/em> can consist of a drive letter and colon, a folder name, a file name, or a combination of these.<\/p>\n<p><em>Destination<\/em><\/p>\n<p>Required. Specifies the location to which you want to copy a file or set of files. <em>Destination<\/em> can consist of a drive letter and colon, a folder name, a file name, or a combination of these.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Defrag<\/h1>\n<p>Locates and consolidates fragmented boot files, data files, and folders on local volumes.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>defrag<\/strong> <em>Volume<\/em><\/p>\n<p><strong>defrag<\/strong> <em>Volume<\/em> [<strong>\/a<\/strong>]<\/p>\n<p><strong>defrag<\/strong> <em>Volume<\/em> [<strong>\/a<\/strong>] [<strong>\/v<\/strong>]<\/p>\n<p><strong>defrag<\/strong> <em>Volume<\/em> [<strong>\/v<\/strong>]<\/p>\n<p><strong>defrag<\/strong> <em>Volume<\/em> [<strong>\/f<\/strong>]<\/p>\n<h2>Parameters<\/h2>\n<p><em>Volume<\/em><\/p>\n<p>The drive letter or a mount point of the volume to be defragmented.<\/p>\n<p><strong>\/a<\/strong><\/p>\n<p>Analyzes the volume, displays a summary of the analysis report, and indicates whether you should defragment the volume.<\/p>\n<p><strong>\/v<\/strong><\/p>\n<p>Displays the complete analysis and defragmentation reports. When used in combination with <strong>\/a<\/strong>, displays only the analysis report. When used alone, displays both the analysis and defragmentation reports.<\/p>\n<p><strong>\/f<\/strong><\/p>\n<p>Forces defragmentation of the volume when free space is low.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Del (erase)<\/h1>\n<p>Deletes specified files.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>del<\/strong> [<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName<\/em> [ &#8230;] [<strong>\/p<\/strong>] [<strong>\/f<\/strong>] [<strong>\/s<\/strong>] [<strong>\/q<\/strong>] [<strong>\/a<\/strong>[<strong>:<\/strong><em>Attributes<\/em>]]<\/p>\n<p><strong>erase<\/strong> [<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName<\/em> [ &#8230;] [<strong>\/p<\/strong>] [<strong>\/f<\/strong>] [<strong>\/s<\/strong>] [<strong>\/q<\/strong>] [<strong>\/a<\/strong>[<strong>:<\/strong><em>Attributes<\/em>]]<\/p>\n<h2>Parameters<\/h2>\n<p>[<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName<\/em><\/p>\n<p>Specifies the location and name of the file or set of files you want to delete. <em>FileName<\/em> is required. You can use multiple file names. Separate file names with spaces, commas, or semicolons.<\/p>\n<p><strong>\/p<\/strong><\/p>\n<p>Prompts you for confirmation before deleting the specified file.<\/p>\n<p><strong>\/f<\/strong><\/p>\n<p>Forces deletion of read-only files.<\/p>\n<p><strong>\/s<\/strong><\/p>\n<p>Deletes specified files from the current directory and all subdirectories. Displays the names of the files as they are being deleted.<\/p>\n<p><strong>\/q<\/strong><\/p>\n<p>Specifies quiet mode. You are not prompted for delete confirmation.<\/p>\n<p><strong>\/a<\/strong><\/p>\n<p>Deletes files based on specified attributes.<\/p>\n<p><em>Attributes<\/em><\/p>\n<p>Specifies any of the file attributes listed in the following table.<\/p>\n<table border=\"0\" cellpadding=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><strong>Attribute<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>r<\/strong><\/td>\n<td>Read-only<\/td>\n<\/tr>\n<tr>\n<td><strong>a<\/strong><\/td>\n<td>Archive<\/td>\n<\/tr>\n<tr>\n<td><strong>s<\/strong><\/td>\n<td>System<\/td>\n<\/tr>\n<tr>\n<td><strong>h<\/strong><\/td>\n<td>Hidden<\/td>\n<\/tr>\n<tr>\n<td><strong>&#8211;<\/strong><\/td>\n<td>Prefix that means NOT<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Rename (ren)<\/h1>\n<p>Changes the name of a file or a set of files.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>rename <\/strong>[<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName1<\/em> <em>FileName2<\/em><\/p>\n<p><strong>ren <\/strong>[<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName1<\/em> <em>FileName2<\/em><\/p>\n<h2>Parameters<\/h2>\n<p>[<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName1<\/em><\/p>\n<p>Specifies the location and name of the file or set of files you want to rename.<\/p>\n<p><em>FileName2<\/em><\/p>\n<p>Specifies the new name for the file. If you use wildcards (* and ?), <em>FileName2<\/em> specifies the new names for the files. You cannot specify a new drive or path when renaming files.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Deltree<\/h1>\n<p>Deletes a directory and all the subdirectories and files in it.<\/p>\n<p>To delete one or more files and directories:<\/p>\n<p>DELTREE [\/Y] [drive:]path [[drive:]path[&#8230;]]<\/p>\n<p>\/Y\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Suppresses prompting to confirm you want to delete<\/p>\n<p>the subdirectory.<\/p>\n<p>[drive:]path\u00a0\u00a0\u00a0 Specifies the name of the directory you want to delete.<\/p>\n<p>Note: Use DELTREE cautiously. Every file and subdirectory within the<\/p>\n<p>specified directory will be deleted.<\/p>\n<h1>Dir<\/h1>\n<p>Displays a list of a directory&#8217;s files and subdirectories. Used without parameters, <strong>dir<\/strong> displays the disk&#8217;s volume label and serial number, followed by a list of directories and files on the disk, including their names and the date and time each was last modified. For files, <strong>dir <\/strong>displays the name extension and the size in bytes. <strong>Dir<\/strong> also displays the total number of files and directories listed, their cumulative size, and the free space (in bytes) remaining on the disk.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>dir<\/strong> [<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>][<em>FileName<\/em>] [&#8230;] [<strong>\/p<\/strong>] [<strong>\/q<\/strong>] [<strong>\/w<\/strong>] [<strong>\/d<\/strong>] [<strong>\/a<\/strong>[[<strong>:<\/strong>]<em>Attributes<\/em>]][<strong>\/o<\/strong>[[<strong>:<\/strong>]<em>SortOrder<\/em>]] [<strong>\/t<\/strong>[[<strong>:<\/strong>]<em>TimeField<\/em>]] [<strong>\/s<\/strong>] [<strong>\/b<\/strong>] [<strong>\/l<\/strong>] [<strong>\/n<\/strong>] [<strong>\/x<\/strong>] [<strong>\/c<\/strong>] [<strong>\/4<\/strong>]<\/p>\n<h2>Parameters<\/h2>\n<p>[<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>]<\/p>\n<p>Specifies the drive and directory for which you want to see a listing.<\/p>\n<p>[<em>FileName<\/em>]<\/p>\n<p>Specifies a particular file or group of files for which you want to see a listing.<\/p>\n<p><strong>\/p<\/strong><\/p>\n<p>Displays one screen of the listing at a time. To see the next screen, press any key on the keyboard.<\/p>\n<p><strong>\/q<\/strong><\/p>\n<p>Displays file ownership information.<\/p>\n<p><strong>\/w<\/strong><\/p>\n<p>Displays the listing in wide format, with as many as five file names or directory names on each line.<\/p>\n<p><strong>\/d<\/strong><\/p>\n<p>Same as <strong>\/w<\/strong> but files are sorted by column.<\/p>\n<p><strong>\/a<\/strong> [[<strong>:<\/strong>] <em>Attributes<\/em>]<\/p>\n<p>Displays only the names of those directories and files with the attributes you specify. If you omit <strong>\/a<\/strong>, <strong>dir<\/strong> displays the names of all files except hidden and system files. If you use <strong>\/a<\/strong> without specifying <em>Attributes<\/em>, <strong>dir<\/strong> displays the names of all files, including hidden and system files. The following list describes each of the values you can use for <em>Attributes<\/em>. The colon (:) is optional. Use any combination of these values, and do not separate the values with spaces.<\/p>\n<table border=\"0\" cellpadding=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><strong>Value<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>h<\/strong><\/td>\n<td>Hidden files<\/td>\n<\/tr>\n<tr>\n<td><strong>s<\/strong><\/td>\n<td>System files<\/td>\n<\/tr>\n<tr>\n<td><strong>d<\/strong><\/td>\n<td>Directories<\/td>\n<\/tr>\n<tr>\n<td><strong>a<\/strong><\/td>\n<td>Files ready for archiving<\/td>\n<\/tr>\n<tr>\n<td><strong>r<\/strong><\/td>\n<td>Read-only files<\/td>\n<\/tr>\n<tr>\n<td><strong>-h<\/strong><\/td>\n<td>Files that are not hidden<\/td>\n<\/tr>\n<tr>\n<td><strong>-s<\/strong><\/td>\n<td>Files other than system files<\/td>\n<\/tr>\n<tr>\n<td><strong>-d<\/strong><\/td>\n<td>Files only (not directories)<\/td>\n<\/tr>\n<tr>\n<td><strong>-a<\/strong><\/td>\n<td>Files that have not changed since the last backup<\/td>\n<\/tr>\n<tr>\n<td><strong>-r<\/strong><\/td>\n<td>Files that are not read-only<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\/o<\/strong> [[<strong>:<\/strong>]<em>SortOrder<\/em>]<\/p>\n<p>Controls the order in which <strong>dir<\/strong> sorts and displays directory names and file names. If you omit <strong>\/o<\/strong>, <strong>dir<\/strong> displays the names in the order in which they occur in the directory. If you use <strong>\/o<\/strong> without specifying <em>SortOrder<\/em>, <strong>dir<\/strong> displays the names of the directories, sorted in alphabetic order, and then displays the names of files, sorted in alphabetic order. The colon (:) is optional. The following list describes each of the values you can use for <em>SortOrder<\/em>. Use any combination of the values, and do not separate these values with white spaces.<\/p>\n<table border=\"0\" cellpadding=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><strong>Value<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>n<\/strong><\/td>\n<td>In alphabetic order by name<\/td>\n<\/tr>\n<tr>\n<td><strong>e<\/strong><\/td>\n<td>In alphabetic order by extension<\/td>\n<\/tr>\n<tr>\n<td><strong>d<\/strong><\/td>\n<td>By date and time, earliest first<\/td>\n<\/tr>\n<tr>\n<td><strong>s<\/strong><\/td>\n<td>By size, smallest first<\/td>\n<\/tr>\n<tr>\n<td><strong>g<\/strong><\/td>\n<td>With directories grouped before files<\/td>\n<\/tr>\n<tr>\n<td><strong>-n<\/strong><\/td>\n<td>In reverse alphabetic order by name (Z through A)<\/td>\n<\/tr>\n<tr>\n<td><strong>-e<\/strong><\/td>\n<td>In reverse alphabetic order by extension (.ZZZ through   .AAA)<\/td>\n<\/tr>\n<tr>\n<td><strong>-d<\/strong><\/td>\n<td>By date and time, latest first<\/td>\n<\/tr>\n<tr>\n<td><strong>-s<\/strong><\/td>\n<td>By size, largest first<\/td>\n<\/tr>\n<tr>\n<td><strong>-g<\/strong><\/td>\n<td>With directories grouped after files<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\/t<\/strong> [[<strong>:<\/strong>]<em>TimeField<\/em>]<\/p>\n<p>Specifies which time field to display or use for sorting. The following list describes each of the values you can use for <em>TimeField<\/em>.<\/p>\n<table border=\"0\" cellpadding=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td><strong>Value<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>c<\/strong><\/td>\n<td>Creation<\/td>\n<\/tr>\n<tr>\n<td><strong>a<\/strong><\/td>\n<td>Last access<\/td>\n<\/tr>\n<tr>\n<td><strong>w<\/strong><\/td>\n<td>Last written<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\/s<\/strong><\/p>\n<p>Lists every occurrence, in the specified directory and all subdirectories, of the specified file name.<\/p>\n<p><strong>\/b<\/strong><\/p>\n<p>Lists each directory name or file name, one per line, including the file name extension. <strong>\/b<\/strong> does not display heading information or a summary. <strong>\/b<\/strong> overrides <strong>\/w<\/strong>.<\/p>\n<p><strong>\/l<\/strong><\/p>\n<p>Displays unsorted directory names and file names in lowercase. <strong>\/l<\/strong> does not convert extended characters to lowercase.<\/p>\n<p><strong>\/n<\/strong><\/p>\n<p>Displays a long list format with file names on the far right of the screen.<\/p>\n<p><strong>\/x<\/strong><\/p>\n<p>Displays the short names generated for files on NTFS and FAT volumes. The display is the same as the display for <strong>\/n<\/strong>, but short names are displayed after the long name.<\/p>\n<p><strong>\/c<\/strong><\/p>\n<p>Displays the thousand separator in file sizes.<\/p>\n<p><strong>\/4<\/strong><\/p>\n<p>Displays four-digit year format.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Echo<\/h1>\n<p>Turns the command echoing feature on or off, or displays a message. Used without parameters, <strong>echo<\/strong> displays the current echo setting.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>echo<\/strong> [{<strong>on<\/strong> | <strong>off<\/strong>}] [<em>Message<\/em>]<\/p>\n<h2>Parameters<\/h2>\n<p>{<strong>on<\/strong> | <strong>off<\/strong>}<\/p>\n<p>Specifies whether to turn the command echoing feature on or off.<\/p>\n<p><em>Message<\/em><\/p>\n<p>Specifies the text that you want to display on the screen.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Edit<\/h1>\n<p>EDIT [\/B] [\/H] [\/R] [\/S] [\/&lt;nnn&gt;] [\/?] [file(s)]<\/p>\n<p>\/B\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Forces monochrome mode.<\/p>\n<p>\/H\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Displays the maximum number of lines possible for your hardware.<\/p>\n<p>\/R\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Load file(s) in read-only mode.<\/p>\n<p>\/S\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Forces the use of short filenames.<\/p>\n<p>\/&lt;nnn&gt;\u00a0\u00a0 &#8211; Load binary file(s), wrapping lines to &lt;nnn&gt; characters wide.<\/p>\n<p>\/?\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Displays this help screen.<\/p>\n<p>[file]\u00a0\u00a0 &#8211; Specifies initial files(s) to load.\u00a0 Wildcards and multiple<\/p>\n<p>filespecs can be given.<\/p>\n<h1>Fdisk<\/h1>\n<p>Configures a hard disk for use with MS-DOS. (Not available for Windows 2000\/XP\/2003)<\/p>\n<p>FDISK [\/STATUS] \/X<\/p>\n<p>\/STATUS\u00a0\u00a0 Displays partition information.<\/p>\n<p>\/X\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ignores extended disk-access support. Use this switch if you<\/p>\n<p>receive disk access or stack overflow messages.<\/p>\n<h1>Format<\/h1>\n<p>Formats the disk in the specified volume to accept Windows files.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>format<\/strong> <em>Volume<\/em> [<strong>\/fs:<\/strong><em>FileSystem<\/em>] [<strong>\/v:<\/strong><em>Label<\/em>] [<strong>\/q<\/strong>] [<strong>\/a:<\/strong><em>UnitSize<\/em>] [<strong>\/c<\/strong>] [<strong>\/x<\/strong>]<\/p>\n<p><strong>format<\/strong> <em>Volume<\/em> [<strong>\/v:<\/strong><em>Label<\/em>] [<strong>\/q<\/strong>] [<strong>\/f:<\/strong><em>Size<\/em>]<\/p>\n<p><strong>format<\/strong> <em>Volume<\/em> [<strong>\/v:<\/strong><em>Label<\/em>] [<strong>\/q<\/strong>] [<strong>\/t:<\/strong><em>Tracks<\/em> <strong>\/n:<\/strong><em>Sectors<\/em>]<\/p>\n<p><strong>format<\/strong> <em>Volume<\/em> [<strong>\/v:<\/strong><em>Label<\/em>] [<strong>\/q<\/strong>]<\/p>\n<p><strong>format<\/strong> <em>Volume<\/em> [<strong>\/q<\/strong>]<\/p>\n<p><strong>format<\/strong> V<em>olume<\/em> [\/<strong>s<\/strong>]<\/p>\n<h2>Parameters<\/h2>\n<p><em>Volume<\/em><\/p>\n<p>Specifies the mount point, volume name, or drive letter (followed by a colon), of the drive you want to format. If you do not specify any of the following command-line options, <strong>format<\/strong> uses the volume type to determine the default format for the disk.<\/p>\n<p><strong>\/fs:<\/strong><em>FileSystem<\/em><\/p>\n<p>Specifies the file system to use <a title=\"View definition\" href=\"ms-its:C:%5CWINDOWS%5CHelp%5Cntcmds.chm::\/HELP=glossary.hlp%20TOPIC=GLS_FILE_ALLOCATION_TABLE\">file allocation table (FAT)<\/a>, <a title=\"View definition\" href=\"ms-its:C:%5CWINDOWS%5CHelp%5Cntcmds.chm::\/HELP=glossary.hlp%20TOPIC=GLS_FAT32\">FAT32<\/a>, or <a title=\"View definition\" href=\"ms-its:C:%5CWINDOWS%5CHelp%5Cntcmds.chm::\/HELP=glossary.hlp%20TOPIC=GLS_NTFS\">NTFS<\/a>. Floppy disks can use only the FAT file system.<\/p>\n<p><strong>\/v:<\/strong><em>Label<\/em><\/p>\n<p>Specifies the volume label. If you omit the <strong>\/v <\/strong>command-line option or use it without specifying a volume label, <strong>format<\/strong> prompts you for the volume label after the formatting is completed. Use the syntax <strong>\/v:<\/strong> to prevent the prompt for a volume label. If you format more than one disk by using one <strong>format<\/strong> command, all of the disks will be given the same volume label. For more information about disk volume labels, see Related Topics.<\/p>\n<p><strong>\/a:<\/strong><em>UnitSize<\/em><\/p>\n<p>Specifies the allocation unit size to use on FAT, FAT32, or NTFS volumes. If you do not specify <em>UnitSize<\/em>, it is chosen based on volume size. The following table lists valid values for <em>UnitSize<\/em>.<\/p>\n<table border=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><strong>Value<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>512<\/strong><\/td>\n<td>Creates 512 bytes per cluster.<\/td>\n<\/tr>\n<tr>\n<td><strong>1024<\/strong><\/td>\n<td>Creates 1024 bytes per cluster.<\/td>\n<\/tr>\n<tr>\n<td><strong>2048<\/strong><\/td>\n<td>Creates 2048 bytes per cluster.<\/td>\n<\/tr>\n<tr>\n<td><strong>4096<\/strong><\/td>\n<td>Creates 4096 bytes per cluster.<\/td>\n<\/tr>\n<tr>\n<td><strong>8192<\/strong><\/td>\n<td>Creates 8192 bytes per cluster.<\/td>\n<\/tr>\n<tr>\n<td><strong>16K<\/strong><\/td>\n<td>Creates 16 kilobytes per cluster.<\/td>\n<\/tr>\n<tr>\n<td><strong>32K<\/strong><\/td>\n<td>Creates 32 kilobytes per cluster.<\/td>\n<\/tr>\n<tr>\n<td><strong>64K<\/strong><\/td>\n<td>Creates 64 kilobytes per cluster.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\/q<\/strong><\/p>\n<p>Performs a quick format. Deletes the file table and the root directory of a previously formatted volume but does not perform a sector by sector scan for bad areas. You should use the <strong>\/q<\/strong> command-line option to format only previously formatted volumes that you know are in good condition.<\/p>\n<p><strong>\/f:<\/strong><em>Size<\/em><\/p>\n<p>Specifies the size of the floppy disk to format. When possible, use this command-line option instead of the <strong>\/t<\/strong> and <strong>\/n<\/strong> command-line options. Windows accepts the following value for size:<\/p>\n<p><strong>1440 <\/strong>or<strong> 1440k <\/strong>or<strong> 1440kb <\/strong>or<strong> 1.44 <\/strong>or<strong> 1.44m <\/strong>or<strong> 1.44mb <\/strong><br \/>\n1.44-MB, double-sided, quadruple-density, 3.5-inch disk<\/p>\n<p><strong>\/t:<\/strong><em>Tracks<\/em><\/p>\n<p>Specifies the number of tracks on the disk. When possible, use the <strong>\/f<\/strong> command-line option instead of this command-line option. If you use the <strong>\/t<\/strong> command-line option, you must also use the <strong>\/n<\/strong> command-line option. These two command-line options provide an alternative method of specifying the size of the disk being formatted. You cannot use the <strong>\/f<\/strong> command-line option with the <strong>\/t<\/strong> command-line option.<\/p>\n<p><strong>\/n:<\/strong><em>Sectors<\/em><\/p>\n<p>Specifies the number of sectors per track. When possible, use the <strong>\/f<\/strong> command-line option instead of this command-line option. If you use the <strong>\/n<\/strong> command-line option, you must also use the <strong>\/t<\/strong> command-line option. These two command-line options provide an alternative method of specifying the size of the disk being formatted. You cannot use the <strong>\/f<\/strong> command-line option with the <strong>\/n<\/strong> command-line option.<\/p>\n<p><strong>\/c<\/strong><\/p>\n<p>NTFS only. Files created on the new volume will be compressed by default.<\/p>\n<p><strong>\/x<\/strong><\/p>\n<p>Causes the volume to dismount, if necessary, before it is formatted. Any open handles to the volume will no longer be valid.<\/p>\n<p>\/s<\/p>\n<p>Copies system files to the formatted disk. (Windows 9x only)<\/p>\n<h1>MD\/CD\/RD<\/h1>\n<h1>Mkdir (MD)<\/h1>\n<p>Creates a directory or subdirectory.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>mkdir<\/strong> [<em>Drive<\/em><strong>:<\/strong>]<em>Path<\/em><\/p>\n<p><strong>md<\/strong> [<em>Drive<\/em><strong>:<\/strong>]<em>Path<\/em><\/p>\n<h2>Parameters<\/h2>\n<p><em>Drive<\/em><strong>:<\/strong><\/p>\n<p>Specifies the drive on which you want to create the new directory.<\/p>\n<p><em>Path<\/em><\/p>\n<p>Required. Specifies the name and location of the new directory. The maximum length of any single path is determined by the file system.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<p>Displays the name of or changes the current directory.<\/p>\n<h1>CHDIR (CD)<\/h1>\n<p>CHDIR [\/D] [drive:][path]<\/p>\n<p>CHDIR [..]<\/p>\n<p>CD [\/D] [drive:][path]<\/p>\n<p>CD [..]<\/p>\n<p>..\u00a0\u00a0 Specifies that you want to change to the parent directory.<\/p>\n<p>Type CD drive: to display the current directory in the specified drive.<\/p>\n<p>Type CD without parameters to display the current drive and directory.<\/p>\n<p>Use the \/D switch to change current drive in addition to changing current<\/p>\n<p>directory for a drive.<\/p>\n<p>If Command Extensions are enabled CHDIR changes as follows:<\/p>\n<p>The current directory string is converted to use the same case as<\/p>\n<p>the on disk names.\u00a0 So CD C:\\TEMP would actually set the current<\/p>\n<p>directory to C:\\Temp if that is the case on disk.<\/p>\n<p>CHDIR command does not treat spaces as delimiters, so it is possible to<\/p>\n<p>CD into a subdirectory name that contains a space without surrounding<\/p>\n<p>the name with quotes.\u00a0 For example:<\/p>\n<p>cd \\winnt\\profiles\\username\\programs\\start menu<\/p>\n<p>is the same as:<\/p>\n<p>cd &#8220;\\winnt\\profiles\\username\\programs\\start menu&#8221;<\/p>\n<p>which is what you would have to type if extensions were disabled.<\/p>\n<h1>Rmdir (rd)<\/h1>\n<p>Removes (that is, deletes) a directory.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>rmdir <\/strong>[<em>Drive<\/em><strong>:<\/strong>]<em>Path<\/em> [<strong>\/s<\/strong>] [<strong>\/q<\/strong>]<\/p>\n<p><strong>rd <\/strong>[<em>Drive<\/em><strong>:<\/strong>]<em>Path<\/em> [<strong>\/s<\/strong>] [<strong>\/q<\/strong>]<\/p>\n<h2>Parameters<\/h2>\n<p>[<em>Drive<\/em><strong>:<\/strong>]<em>Path<\/em><\/p>\n<p>Specifies the location and name of the directory that you want to delete.<\/p>\n<p><strong>\/s<\/strong><\/p>\n<p>Removes the specified directory and all subdirectories including any files. Use <strong>\/s<\/strong> to remove a tree.<\/p>\n<p><strong>\/q<\/strong><\/p>\n<p>Runs <strong>rmdir<\/strong> in quiet mode. Deletes directories without confirmation.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>MEM<\/h1>\n<p>Displays the amount of used and free memory in your system.<\/p>\n<p>MEM [\/PROGRAM | \/DEBUG | \/CLASSIFY]<\/p>\n<p>\/PROGRAM or \/P\u00a0\u00a0 Displays status of programs currently loaded in memory.<\/p>\n<p>\/DEBUG or \/D\u00a0\u00a0\u00a0\u00a0 Displays status of programs, internal drivers, and other<\/p>\n<p>information.<\/p>\n<p>\/CLASSIFY or \/C\u00a0 Classifies programs by memory usage. Lists the size of<\/p>\n<p>programs, provides a summary of memory in use, and lists<\/p>\n<p>largest memory block available.<\/p>\n<h1>Ping<\/h1>\n<p>Verifies IP-level connectivity to another TCP\/IP computer by sending Internet Control Message Protocol (ICMP) Echo Request messages. The receipt of corresponding Echo Reply messages are displayed, along with round-trip times. Ping is the primary TCP\/IP command used to troubleshoot connectivity, reachability, and name resolution. Used without parameters, <strong>ping<\/strong> displays help.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>ping<\/strong> [<strong>-t<\/strong>] [<strong>-a<\/strong>] [<strong>-n<\/strong> <em>Count<\/em>] [<strong>-l <\/strong><em>Size<\/em>] [<strong>-f<\/strong>] [<strong>-i<\/strong> <em>TTL<\/em>] [<strong>-v<\/strong> <em>TOS<\/em>] [<strong>-r<\/strong> <em>Count<\/em>] [<strong>-s<\/strong> <em>Count<\/em>] [{<strong>-j<\/strong> <em>HostList<\/em> | <strong>-k <\/strong><em>HostList<\/em>}] [<strong>-w<\/strong> <em>Timeout<\/em>] [<strong>-R<\/strong>] [<strong>-S <em>SrcAddr<\/em><\/strong>] [<strong>-4<\/strong>] [<strong>-6<\/strong>] <em>TargetName<\/em><\/p>\n<h2>Parameters<\/h2>\n<p><strong>-t<\/strong><\/p>\n<p>Specifies that ping continue sending Echo Request messages to the destination until interrupted. To interrupt and display statistics, press CTRL+BREAK. To interrupt and quit ping, press CTRL+C.<\/p>\n<p><strong>-a<\/strong><\/p>\n<p>Specifies that reverse name resolution is performed on the destination IP address. If this is successful, ping displays the corresponding host name.<\/p>\n<p><strong>-n<\/strong> <em>Count<\/em><\/p>\n<p>Specifies the number of Echo Request messages sent. The default is 4.<\/p>\n<p><strong>-l <\/strong><em>Size<\/em><\/p>\n<p>Specifies the length, in bytes, of the Data field in the Echo Request messages sent. The default is 32. The maximum <em>Size<\/em> is 65,527.<\/p>\n<p><strong>-f<\/strong><\/p>\n<p>Specifies that Echo Request messages are sent with the Don&#8217;t Fragment flag in the IP header set to 1 (available on IPv4 only). The Echo Request message cannot be fragmented by routers in the path to the destination. This parameter is useful for troubleshooting path Maximum Transmission Unit (PMTU) problems.<\/p>\n<p><strong>-i <\/strong><em>TTL<\/em><\/p>\n<p>Specifies the value of the TTL field in the IP header for Echo Request messages sent. The default is the default TTL value for the host. The maximum <em>TTL<\/em> is 255.<\/p>\n<p><strong>-v<\/strong> <em>TOS<\/em><\/p>\n<p>Specifies the value of the Type of Service (TOS) field in the IP header for Echo Request messages sent (available on IPv4 only). The default is 0. <em>TOS<\/em> is specified as a decimal value from 0 through 255.<\/p>\n<p><strong>-r<\/strong> <em>Count<\/em><\/p>\n<p>Specifies that the Record Route option in the IP header is used to record the path taken by the Echo Request message and corresponding Echo Reply message (available on IPv4 only). Each hop in the path uses an entry in the Record   Route option. If possible, specify a <em>Count<\/em> that is equal to or greater than the number of hops between the source and destination. The <em>Count<\/em> must be a minimum of 1 and a maximum of 9.<\/p>\n<p><strong>-s<\/strong> <em>Count<\/em><\/p>\n<p>Specifies that the Internet Timestamp option in the IP header is used to record the time of arrival for the Echo Request message and corresponding Echo Reply message for each hop. The <em>Count<\/em> must be a minimum of 1 and a maximum of 4. This is required for link-local destination addresses.<\/p>\n<p><strong>-j<\/strong> <em>HostList<\/em><\/p>\n<p>Specifies that the Echo Request messages use the Loose Source   Route option in the IP header with the set of intermediate destinations specified in <em>HostList<\/em> (available on IPv4 only). With loose source routing, successive intermediate destinations can be separated by one or multiple routers. The maximum number of addresses or names in the host list is 9. The host list is a series of IP addresses (in dotted decimal notation) separated by spaces.<\/p>\n<p><strong>-k<\/strong> <em>HostList<\/em><\/p>\n<p>Specifies that the Echo Request messages use the Strict Source   Route option in the IP header with the set of intermediate destinations specified in <em>HostList<\/em> (available on IPv4 only). With strict source routing, the next intermediate destination must be directly reachable (it must be a neighbor on an interface of the router). The maximum number of addresses or names in the host list is 9. The host list is a series of IP addresses (in dotted decimal notation) separated by spaces.<\/p>\n<p><strong>-w<\/strong> <em>Timeout<\/em><\/p>\n<p>Specifies the amount of time, in milliseconds, to wait for the Echo Reply message that corresponds to a given Echo Request message to be received. If the Echo Reply message is not received within the time-out, the &#8220;Request timed out&#8221; error message is displayed. The default time-out is 4000 (4 seconds).<\/p>\n<p><strong>-R<\/strong><\/p>\n<p>Specifies that the round-trip path is traced (available on IPv6 only).<\/p>\n<p><strong>-S<\/strong> <em>SrcAddr<\/em><\/p>\n<p>Specifies the source address to use (available on IPv6 only).<\/p>\n<p><strong>-4<\/strong><\/p>\n<p>Specifies that IPv4 is used to ping. This parameter is not required to identify the target host with an IPv4 address. It is only required to identify the target host by name.<\/p>\n<p><strong>-6<\/strong><\/p>\n<p>Specifies that IPv6 is used to ping. This parameter is not required to identify the target host with an IPv6 address. It is only required to identify the target host by name.<\/p>\n<p><em>TargetName<\/em><\/p>\n<p>Specifies the host name or IP address of the destination.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>SCANDISK<\/h1>\n<p>Windows 9x utility to scan for file, folder, and physical disk errors. For Windows NT\/2000\/XP\/2003 use CHKDSK.<\/p>\n<h1>SCANREG<\/h1>\n<p>Scans and backs up Registry for Windows 98\/ME<\/p>\n<p>Usage: SCANREG [\/&lt;option&gt;]<\/p>\n<p>&lt;option&gt;<\/p>\n<p>?\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Displays usage.<\/p>\n<p>BACKUP\u00a0\u00a0\u00a0\u00a0 : Backup the registry and related system configuration files.<\/p>\n<p>RESTORE\u00a0\u00a0\u00a0 : Choose a backup to restore.<\/p>\n<p>FIX\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Repair the registry.<\/p>\n<p>COMMENT=&#8221;&lt;comment&gt;&#8221;<\/p>\n<p>: Adds the specified comment to the CAB file while backing up.<\/p>\n<h1>Set<\/h1>\n<p>Displays, sets, or removes environment variables. Used without parameters, <strong>set<\/strong> displays the current environment settings.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>set <\/strong>[[<strong>\/a<\/strong> [<em>Expression<\/em>]] [<strong>\/p<\/strong> [<em>Variable<\/em><strong>=<\/strong>]] <em>String<\/em>]<\/p>\n<h2>Parameters<\/h2>\n<p><strong>\/a<\/strong><\/p>\n<p>Sets <em>String<\/em> to a numerical expression that is evaluated.<\/p>\n<p><strong>\/p<\/strong><\/p>\n<p>Sets the value of <em>Variable<\/em> to a line of input.<\/p>\n<p><em>Variable<\/em><\/p>\n<p>Specifies the variable you want to set or modify.<\/p>\n<p><em>String<\/em><\/p>\n<p>Specifies the string you want to associate with the specified variable.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Setver<\/h1>\n<p>Sets the MS-DOS version number that Windows reports to a program.<\/p>\n<p>Display current version table:\u00a0 SETVER [drive:path]<\/p>\n<p>Add entry:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SETVER [drive:path] filename n.nn<\/p>\n<p>Delete entry:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SETVER [drive:path] filename \/DELETE [\/QUIET]<\/p>\n<p>[drive:path]\u00a0\u00a0\u00a0 Specifies location of the SETVER.EXE file.<\/p>\n<p>filename\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Specifies the filename of the program.<\/p>\n<p>n.nn\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Specifies the MS-DOS version to be reported to the program.<\/p>\n<p>\/DELETE or \/D\u00a0\u00a0 Deletes the version-table entry for the specified program.<\/p>\n<p>\/QUIET or \/Q\u00a0\u00a0\u00a0 Hides the message typically displayed during deletion of<\/p>\n<p>version-table entry.<\/p>\n<h1>Type<\/h1>\n<p>Displays the contents of a text file. Use the <strong>type <\/strong>command to view a text file without modifying it.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>type <\/strong>[<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName<\/em><\/p>\n<h2>Parameters<\/h2>\n<p>[<em>Drive<\/em><strong>:<\/strong>][<em>Path<\/em>] <em>FileName<\/em><\/p>\n<p>Specifies the location and name of the file or files that you want to view. Separate multiple file names with spaces.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n<h1>Ver<\/h1>\n<p>Displays the operating system version number.<\/p>\n<h1>Xcopy<\/h1>\n<p>Copies files and directories, including subdirectories.<\/p>\n<h2>Syntax<\/h2>\n<p><strong>xcopy<\/strong> <em>Source<\/em> [<em>Destination<\/em>] [<strong>\/w<\/strong>] [<strong>\/p<\/strong>] [<strong>\/c<\/strong>] [<strong>\/v<\/strong>] [<strong>\/q<\/strong>] [<strong>\/f<\/strong>] [<strong>\/l<\/strong>] [<strong>\/g<\/strong>] [<strong>\/d<\/strong>[<strong>:<\/strong><em>MM-DD-YYYY<\/em>]] [<strong>\/u<\/strong>] [<strong>\/i<\/strong>] [<strong>\/s<\/strong> [<strong>\/e<\/strong>]] [<strong>\/t<\/strong>] [<strong>\/k<\/strong>] [<strong>\/r<\/strong>] [<strong>\/h<\/strong>] [{<strong>\/a<\/strong> | <strong>\/m<\/strong>}] [<strong>\/n<\/strong>] [<strong>\/o<\/strong>] [<strong>\/x<\/strong>] [<strong>\/exclude:<\/strong><em>FileName1<\/em>[<strong>+<\/strong>[<em>FileName2<\/em>]][<strong>+<\/strong>[<em>FileName3<\/em>]] [{<strong>\/y<\/strong> | <strong>\/-y<\/strong>}] [<strong>\/z<\/strong>]<\/p>\n<h2>Parameters<\/h2>\n<p><em>Source<\/em><\/p>\n<p>Required. Specifies the location and names of the files you want to copy. This parameter must include either a drive or a path.<\/p>\n<p><em>Destination<\/em><\/p>\n<p>Specifies the destination of the files you want to copy. This parameter can include a drive letter and colon, a directory name, a file name, or a combination of these.<\/p>\n<p><strong>\/w<\/strong><\/p>\n<p>Displays the following message and waits for your response before starting to copy files:<\/p>\n<p><code>Press any key to begin copying file(s) <\/code><\/p>\n<p><strong>\/p<\/strong><\/p>\n<p>Prompts you to confirm whether you want to create each destination file.<\/p>\n<p><strong>\/c<\/strong><\/p>\n<p>Ignores errors.<\/p>\n<p><strong>\/v <\/strong><\/p>\n<p>Verifies each file as it is written to the destination file to make sure that the destination files are identical to the source files.<\/p>\n<p><strong>\/q<\/strong><\/p>\n<p>Suppresses the display of <strong>xcopy <\/strong>messages.<\/p>\n<p><strong>\/f<\/strong><\/p>\n<p>Displays source and destination file names while copying.<\/p>\n<p><strong>\/l<\/strong><\/p>\n<p>Displays a list of files that are to be copied.<\/p>\n<p><strong>\/g<\/strong><\/p>\n<p>Creates decrypted destination files.<\/p>\n<p><strong>\/d<\/strong>[<strong>:<\/strong><em>MM-DD-YYYY<\/em>]<\/p>\n<p>Copies source files changed on or after the specified date only. If you do not include a <em>MM-DD-YYYY<\/em> value, <strong>xcopy<\/strong> copies all <em>Source<\/em> files that are newer than existing <em>Destination<\/em> files. This command-line option allows you to update files that have changed.<\/p>\n<p><strong>\/u<\/strong><\/p>\n<p>Copies files from <em>Source<\/em> that exist on <em>Destination<\/em> only.<\/p>\n<p><strong>\/i<\/strong><\/p>\n<p>If <em>Source<\/em> is a directory or contains wildcards and <em>Destination<\/em> does not exist, <strong>xcopy<\/strong> assumes<em> destination<\/em> specifies a directory name and creates a new directory. Then, <strong>xcopy<\/strong> copies all specified files into the new directory. By default, <strong>xcopy<\/strong> prompts you to specify whether <em>Destination<\/em> is a file or a directory.<\/p>\n<p><strong>\/s<\/strong><\/p>\n<p>Copies directories and subdirectories, unless they are empty. If you omit <strong>\/s<\/strong>, <strong>xcopy <\/strong>works within a single directory.<\/p>\n<p><strong>\/e<\/strong><\/p>\n<p>Copies all subdirectories, even if they are empty. Use <strong>\/e<\/strong> with the <strong>\/s<\/strong> and <strong>\/t<\/strong> command-line options.<\/p>\n<p><strong>\/t<\/strong><\/p>\n<p>Copies the subdirectory structure (that is, the tree) only, not files. To copy empty directories, you must include the <strong>\/e<\/strong> command-line option.<\/p>\n<p><strong>\/k<\/strong><\/p>\n<p>Copies files and retains the read-only attribute on destination files if present on the source files. By default, <strong>xcopy<\/strong> removes the read-only attribute.<\/p>\n<p><strong>\/r<\/strong><\/p>\n<p>Copies read-only files.<\/p>\n<p><strong>\/h<\/strong><\/p>\n<p>Copies files with hidden and system file attributes. By default, <strong>xcopy<\/strong> does not copy hidden or system files.<\/p>\n<p><strong>\/a<\/strong><\/p>\n<p>Copies only source files that have their archive file attributes set. <strong>\/a<\/strong> does not modify the archive file attribute of the source file. For information about how to set the archive file attribute by using <strong>attrib<\/strong>, see Related Topics.<\/p>\n<p><strong>\/m<\/strong><\/p>\n<p>Copies source files that have their archive file attributes set. Unlike <strong>\/a<\/strong>, <strong>\/m<\/strong> turns off archive file attributes in the files that are specified in the source. For information about how to set the archive file attribute by using <strong>attrib<\/strong>, see Related Topics.<\/p>\n<p><strong>\/n<\/strong><\/p>\n<p>Creates copies by using the NTFS short file or directory names. <strong>\/n<\/strong> is required when you copy files or directories from an NTFS volume to a FAT volume or when the FAT file system naming convention (that is, 8.3 characters) is required on the destination file system. The destination file system can be FAT or NTFS.<\/p>\n<p><strong>\/o<\/strong><\/p>\n<p>Copies file ownership and discretionary access control list (DACL) information.<\/p>\n<p><strong>\/x<\/strong><\/p>\n<p>Copies file audit settings and system access control list (SACL) information (implies <strong>\/o<\/strong>).<\/p>\n<p><strong>\/exclude:<\/strong><em>FileName1<\/em>[<strong>+<\/strong>[<em>FileName2<\/em>]][<strong>+<\/strong>[<em>FileName3<\/em>]]<\/p>\n<p>Specifies a list of files containing strings.<\/p>\n<p><strong>\/y<\/strong><\/p>\n<p>Suppresses prompting to confirm that you want to overwrite an existing destination file.<\/p>\n<p><strong>\/-y<\/strong><\/p>\n<p>Prompts to confirm that you want to overwrite an existing destination file.<\/p>\n<p><strong>\/z<\/strong><\/p>\n<p>Copies over a network in restartable mode.<\/p>\n<p><strong>\/?<\/strong><\/p>\n<p>Displays help at the command prompt.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Attrib Displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, attrib displays attributes of all files in the current directory. Syntax attrib [{+r | -r}] [{+a | -a}] [{+s | -s}] [{+h | -h}] [[Drive:][Path] FileName] [\/s[\/d]] Parameters +r Sets the read-only file attribute. -r [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-computer-tech-stuff"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=166"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions\/167"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}