Witness the power of XP console commands

  

I believe that many system users are not very familiar with the console in WinXP system. In fact, this console has powerful functions, can solve many XP boot problems, and is very simple in operation. Therefore, today Xiaobian will introduce this console in detail for everyone to witness its powerful features.

First, the console application detailed

1. Installation using the recovery console

There are two ways to use the command recovery console, one is to boot with the Windows XP boot CD Then, when starting, choose to use the command recovery console to fix; the second is to install when XP is running. Specific method: first insert the Windows XP installation boot disk into the CD-ROM drive, select Run in the Start menu (or press “Win+R”) to open the Run dialog box, enter the command X\\1386\\WINNT32.EXE /CMDCONS (where X is Load the XP CD-ROM drive letter), when the system asks you whether to install the command recovery console, select Yes, the installation wizard appears, then choose to skip the network update, and other files are copied, the installation is successful. After rebooting, you can see the Microsoft Windows XP Recovery Console option in the startup list.

2. If you don't need the Recovery Console, you can remove it manually.

Open “My Computer", double-click the drive where the Recovery Console is installed, assuming the C drive. Go to the root directory of the C drive and delete the “Cmdcons” folder and the Cmldr file. Right-click on the Boot.ini file and select “Properties'; in the window that opens, clear the “read-only” checkbox, “OK" Then open the Boot.ini file in “Notepad”, delete the entry of the Recovery Console, close the file after saving, and finally restore the read-only attribute of the Boot.ini file.

Second, file and directory operation commands

Attrib

Display and change the properties of a single file or directory. This command sets or removes read-only, system, archive, hidden, and compressed attributes assigned to a file or directory.

The attrib command with the following parameters is only available when using the Recovery Console. The attrib command with different parameters can be used at the command prompt.

attrib [+r -r] [+a -a][ +s -s] [+h -h] [ +c -c] [ [ drive:] [ path] filename]

Parameters

+r

Set read-only properties.

-r

Clear read-only attributes.

+a

Set the archive file properties.

-a

Set the archive file properties.

+s

Set system properties.

-s

Clear system properties.

+h

Set hidden properties.

-h

Clear hidden attributes.

+c

Set compression properties.

-c

Clear compression properties.

[ [ drive:] [ path] filename]

Specifies the location and name of the directory or file to process. You can change only one file at a time, or you can change the entire directory.

/s

Apply attrib and any command line options to matching files in the current directory and all its subdirectories

/d

will attrib And any command line options are applied to the directory.

Note: You can change multiple properties of a file or directory with a single command.

[next]

batch

Execute the command specified in the text file. The batch command is only available when using the Recovery Console. The Recovery Console can be launched from the installation CD.

batch input_file [ output_file]

Parameters

input_file

Specifies a text file containing a list of commands to execute. Input_file can consist of a drive letter and a colon, a directory name, a file name, or a combination of these.

output_file

If specified, the command output is stored in the named file. If not specified, the output will be displayed on the screen.

Bootcfg

The bootcfg command initiates configuration and failback (for most computers, the boot.ini file).

The bootcfg command with the following parameters is only available when using the Recovery Console. A bootcfg command with different parameters can be used at the command prompt.

Usage:

bootcfg /default

Set the default boot entry.

bootcfg /add

Add a Windows installation to the boot list.

bootcfg /rebuild

Repeats the entire Windows installation process and allows the user to select what to add.

Note: Before using bootcfg /rebuild, back up the boot.ini file with the bootcfg /copy command.

Copyright © Windows knowledge All Rights Reserved