How to Open an MS-DOS Windows

To issue the following commands, it is necessary to open a command prompt (an
MS-DOS window). The procedure for this is the same for all versions of Windows.

  1. Click the START button
  2. Choose the RUN option
  3. Type “command” if you are using Windows 95/98 or “cmd” for all other versions
    of Windows and press Enter or click OK.
  4. A window similar to the following one will appear
    image
  5. Now the commands and tools listed below can be entered.

 

Commands and tools (Windows)

Commands

date Display or set the date of the system
time Display or set the time of the system
ver Display the MS-DOS version that is being used
dir Display the list of subdirectories and files of a directory
cls Clear the screen
mkdir,
md directory
Make a directory with the name “directory”
Example: md tools
chdir, cd directory Display the name or change the current directory to “directory”
Example: cd tools
rmdir, rd directory Delete the directory with the name “directory”
Example: rd tools
tree directory Display the structure of folders of a path in text-graphic format
Example: tree c:\tools
chkdsk Check a disk and show a status report
mem Show the amount of memory used and free in the system

rename,
ren source dest

Change the name of files
Example: ren oldname newname

copy source dest

Copy one or more files to another location
Example: copy c:\tools\myfile.txt c:\tmpmpry

move source dest

Move files and change the name of files and directories
Example: move c:\tools c:\tmpe

type file

Type the content of one or more text files
Example: type c:\tools\myfile.txt

more file

Display the information screen by screen
Example: more c:\tools\myfile.txt

delete, del file

Delete one or more files
Example: del c:\tools\myfile.txte

No comments:

Post a Comment