Ana səhifə

Appendix e: ms-dos


Yüklə 0.5 Mb.
səhifə4/8
tarix25.06.2016
ölçüsü0.5 Mb.
1   2   3   4   5   6   7   8

WINDOWS XP COMMAND SET

The Command prompt in Windows XP can be found in Start | All Programs | Accessories. In XP for more information on a specific command, type Help and a space followed by the command name.


ASSOC Displays or modifies file extension associations.

AT Schedules commands and programs to run on a computer.

ATTRIB Displays or changes file attributes.

BREAK Sets or clears extended CTRL+C checking.

CACLS Displays or modifies access control lists (ACLs) of files.

CALL Calls one batch program from another.

CD Displays the name of or changes the current directory.

CHCP Displays or sets the active code page number.

CHDIR Displays the name of or changes the current directory.

CHKDSK Checks a disk and displays a status report.

CHKNTFS Displays or modifies the checking of disk at boot time.

CLS Clears the screen.

CMD Starts a new instance of the Windows command interpreter.

COLOR Sets the default console foreground and background colors.

COMP Compares the contents of two files or sets of files.

COMPACT Displays or alters the compression of files on NTFS partitions.

CONVERT Converts FAT volumes to NTFS. You cannot convert the

current drive.

COPY Copies one or more files to another location.

DATE Displays or sets the date.

DEL Deletes one or more files.

DIR Displays a list of files and subdirectories in a directory.

DISKCOMP Compares the contents of two floppy disks.

DISKCOPY Copies the contents of one floppy disk to another.

DOSKEY Edits command lines, recalls Windows commands, and creates macros.

ECHO Displays messages, or turns command echoing on or off.

ENDLOCAL Ends localization of environment changes in a batch file.

ERASE Deletes one or more files.

EXIT Quits the CMD.EXE program (command interpreter).

FC Compares two files or sets of files, and displays the differences

between them.

FIND Searches for a text string in a file or files.

FINDSTR Searches for strings in files.

FOR Runs a specified command for each file in a set of files.

FORMAT Formats a disk for use with Windows.

FTYPE Displays or modifies file types used in file extension associations.

GOTO Directs the Windows command interpreter to a labeled line in a

batch program.

GRAFTABL Enables Windows to display an extended character set in graphics

mode.


HELP Provides Help information for Windows commands.

IF Performs conditional processing in batch programs.

LABEL Creates, changes, or deletes the volume label of a disk.

MD Creates a directory.

MKDIR Creates a directory.

MODE Configures a system device.

MORE Displays output one screen at a time.

MOVE Moves one or more files from one directory to another directory.

PATH Displays or sets a search path for executable files.

PAUSE Suspends processing of a batch file and displays a message.

POPD Restores the previous value of the current directory saved by PUSHD.

PRINT Prints a text file.

PROMPT Changes the Windows command prompt.

PUSHD Saves the current directory then changes it.

RD Removes a directory.

RECOVER Recovers readable information from a bad or defective disk.

REM Records comments (remarks) in batch files or CONFIG.SYS.

REN Renames a file or files.

RENAME Renames a file or files.

REPLACE Replaces files.

RMDIR Removes a directory.

SET Displays, sets, or removes Windows environment variables.

SETLOCAL Begins localization of environment changes in a batch file.

SHIFT Shifts the position of replaceable parameters in batch files.

SORT Sorts input.

START Starts a separate window to run a specified program or command.

SUBST Associates a path with a drive letter.

TIME Displays or sets the system time.

TITLE Sets the window title for a CMD.EXE session.

TREE Graphically displays the directory structure of a drive or path.

TYPE Displays the contents of a text file.

VER Displays the Windows version.

VERIFY Tells Windows whether to verify that your files are written

correctly to a disk.

VOL Displays a disk volume label and serial number.

XCOPY Copies files and directory trees.



INSTALLING MS-DOS 6.22

For those of you who would like to configure an old MS-DOS PC system as an experimental computer this section takes you through a typical MS-DOS installation routine. To do this yourself you need an old AT PC and a set of MS-DOS6.22 installation disks.


Before MS-DOS can be installed on the hard disk drive it must be PARTITIONED and HIGH LEVEL FORMATTED. In the older versions of MS-DOS below version 5, the partitioning and formatting operation had to be done separately using the DOS FDISK and FORMAT C:/s commands respectively. In more recent versions of MS-DOS, these chores can be done automatically.
The following MS-DOS 6.22 installation procedure demonstrates how easy it is to prepare the hard disk and install the OS:


  • Boot the DOS ‘setup’ disk off the ‘A:’ drive. The MS-DOS 6.22 setup screen is displayed as shown below:




Microsoft MS-DOS 6.22 Setup

Welcome to Setup.
The Setup program prepares MS-DOS 6.22 to run on your computer.

To set up MS-DOS now, press ENTER.


To learn more about Setup before continuing, press F1.
To exit Setup without installing MS-DOS, press F3.
Note: If you have not backed up your files recently, you might want to do so before installing MS-DOS. To back up your files, press F3 to quit Setup now. Then, back up your files by using a backup program.

To continue Setup, press ENTER.


ENTER=Continue Fl=Help F3=Exit F7=Install to a Floppy Disk

Figure 3



  • PRESS ENTER....



Microsoft MS-DOS 6.22 Setup
Setup needs to configure the unallocated space on your

hard disk for use with MS-DOS. None of your existing

files will be affected.
To have Setup configure the space for you, choose the

recommended option.


Configure unallocated disk space (recommended).

Exit Setup.


To accept the selection, press ENTER.

To change the selection, press the UP or DOWN ARROW key,

and then press ENTER.

ENTER.
ENTER=Continue Fl=Help F3=Exit




Figure 4

  • PRESS ENTER.....




Microsoft MS-DOS 6.22 Setup

Setup will restart your computer now.

Please make sure Setup Disk 1 is in drive A.

To continue, press ENTER.



Figure 5

  • PRESS ENTER.....




Microsoft MS-DOS 6.22 Setup


Please wait

Setup is checking your system configuration.


Figure 6
WAIT while the hard drive parameters are read from the CMOS setup memory and the drive is automatically partitioned for MS-DOS. After a few seconds the following screen appears.......




Microsoft MS-DOS 6.22 Setup

Formatting Hard Disk Drives
All of your disk space is configured for use with MS-DOS.

This space is being formatted now.


Formatting drive C:

0% of drive formatted



Figure 7

Wait until 100% of the drive is high level formatted and the system files are transferred ......




Microsoft MS-DOS 6.22 Setup


Setup will use the following system settings:
Date/Time: 07/13/95 22.55

Country: United States

Keyboard Layout: United States
The settings are correct.
If all the settings are correct, press ENTER.
To change a setting, press the UP or DOWN ARROW keys

to select it. Then press ENTER to see alternatives.


ENTER=Continue Fl=Help F3=Exit




Figure 8


  • Use the UP and DOWN arrow keys to change the country and keyboard settings to United Kingdom. If you wish you can also alter the data and time.





Microsoft MS-DOS 6.22 Setup


MS-DOS 6.22 supports the character sets used in different

countries. Choose the character set you want.


Poland

Portugal


Spain

Sweden


Switzerland

United Kingdom

United States

Yugoslavia


To accept the selection, press ENTER.

To change the selection, press the UP or Down Arrow key,

and then press ENTER.
ENTER=Continue F1=Help F3=Exit ESC=Previous Screen


Figure 9

  • PRESS ENTER and you are prompted to change or accept the name of the DOS directory, C:/DOS...........

MS-DOS 6.22 Setup

Setup will place your MS-DOS files in the following

directory:


C:\DOS
To place MS-DOS files in this directory, press ENTER.
To place MS-DOS files in a different directory, type it’s

path and press ENTER.





Figure 10


  • Press ENTER and wait while MS-DOS installs in the C:\DOS directory. You will subsequently be prompted to place first disk 2 and then disk 3, into drive A:. Remember to press enter after you insert each disk.




  • MS-DOS is now installed. Remove the floppy from drive A: and re-boot the system.

The automatic installation creates a basic CONFIG.SYS and AUTOEXEC.BAT file on the root directory of the hard disk (C:\). The files are shown below. Notice how the country and keyboard definition in the config.sys and autoexec.bat respectively have been set to the UK version.




Typical CONFIG.SYS file
DEVICE = C:\DOS\SETVER.EXE

COUNTRY=044,,C:\DOS\COUNTRY.SYS

FILES = 30


Typical AUTOEXEC.BAT file
@ECHO OFF

PROMPT $P$G

PATH C:\DOS

SET TEMP=C:\DOS

KEYB UK,,C:\DOS\KEYBOARD.SYS

Figure 11

At this point MS-DOS 6.22 is now successfully installed on the hard disk (Drive C:). Part of DOS has been placed in three files in the root directory of drive c:, named I/O.sys, MS-DOS.sys and Command.com and the other part is stored as several individual files in a sub directory named DOS. In addition, two system configuration files known as config.sys and Autoexec.bat are also present in the root directory.
We can examine the contents of the hard disk at this point, by first entering the root directory of drive c: by typing:

c:\ Enter
followed by the view directory (wide view), commandrive:
dir/w Enter
The files COMMAND.COM, CONFIG.SYS, AUTOEXEC.BAT and a directory named DOS are listed on screen. The DOS directory is indicated by square brackets around the directory name, thus, [DOS].
C:\> dir
Volume in drive C has no label

Volume Serial Number is 1D40-4A12

Directory of C:\
COMMAND.COM CONFIG.SYS AUTOEXEC.BAT [DOS]
4 file(s) 55,072 bytes
2,140,321,120 bytes free

Figure 12


Notice that the files IO.SYS and MS-DOS.SYS previously mentioned, are not visible. You can't see them because they are automatically hidden and made into read-only files to prevent them from being accidentally erased. The three files listed above are crucial DOS files that contain part of the system boot-loader program, and part of the DOS command library, the so called internal commands. The rest of the DOS command library, known as the external commands are placed in the [DOS] directory and are visible to the user.

If you would like to see the hidden system files IO.SYS and MS-DOS.SYS. Make sure you are in the root directory and simply type:


attrib then press Enter.
This will list all the files in the root directory including the hidden system files.

1   2   3   4   5   6   7   8


Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©atelim.com 2016
rəhbərliyinə müraciət