MS-DOS tutorial

Immanuel Training Institute proudly presents free software courses

To get certificate Contact: iits.certificate@gmail.com


Introduction:

·       MS-DOS stands for Microsoft Disk Operating System

·       MS-Dos is command line user interface OS

·       Developed by IBM

·       It has several versions

·       To work in DOS platform we need to know some basic commands

·       With help of MS-dos commands we can create windows batch file, which is used for automate our bored stuffs.

To Open:

·       Start->run->cmd

·       To maximize the window Alt+Enter

·       To save the file -> ctrl+Z

·       To close -> Use ‘exit’ command

List of DOS Commands:

Command

Description

Help

To list the DOS commands

 

 

Cls

Clear the screen

 

 

Dir

View Directory

 

 

dir/p

View Directory page wise

 

 

dir/w

View Directory width wise

 

 

dir/AD

View only directories

 

 

dir/A-D

View only files

 

 

dir/QR

View read only files

 

 

dir/ON

View files in namewise

 

 

dir/OD

View files in datewise

 

 

dir/OS

View files in sizewise

 

 

dir/s/p

View sub directory

 

 

copy con filename

Create the ifile

 

 

type filename

Open the file

 

 

del filename

Delete the file

 

 

ren oldname newname

Rename the file/directory

 

 

md dirname / mkdir directoryname

Creat the directory

 

 

cd dirname / chdir directoryname

Open the directory

 

 

rd dirname / rmdir directoryname

Delete the directory

 

 

edit filename

To Edit the file

 

 

copy existingfilename newfilename

Copy from file to file

 

 

Date

To view and change the date

 

 

Time

To view and change the time

 

 

Exit

To close

 

 

ping ip_address/server name

To check network reachabilty

 

 

color colorcode

 

Sets the default console foreground and background colors.

the first corresponds to the background; the second the foreground.  Each digit

can be any of the following values:

 

    0 = Black       8 = Gray

    1 = Blue        9 = Light Blue

    2 = Green       A = Light Green

    3 = Aqua        B = Light Aqua

    4 = Red         C = Light Red

    5 = Purple      D = Light Purple

    6 = Yellow      E = Light Yellow

    7 = White       F = Bright White


Comp

Compares the contents of two files or sets of files.

 

 

echo          

Displays messages, or turns command echoing on or off.

 

 

erase  filename 

Deletes one or more files.

 

 

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.

 

 

goto          

Directs the Windows command interpreter to a labeled line in a batch program.

 

 

move          

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

 

 

shutdown      

Allows proper local or remote shutdown of machine.

 

 

start         

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

 

 

ver           

Displays the Windows version.

                   

Contact Form

Name

Email *

Message *