MS DOS (Brief summary & Basics)
MS DOS IS A DISK OPERATING SYSTEM .IT WAS DEVELOPED BY MICROSOFT COMPANY. IT HAS C.U.I FEATURES . C.U.I MEANS CHARACTER USER INTERFACE. IT IS A SINGLE USER SINGLE TASK OPERATING SYSTEM.
DOS BASED SOFT WARES:- C,C++,JAVA,BASIC,FOTRAN, COBOL,PASCAL TALLY,TT,DBASE,WORDSTAR,LOTUS123, ETC.
ENTERING :-
1.START-SHUT DOWN-RESTART IN MSDOS MODE-OK-TYPE CD\ ENTER
THEN U WILL C-PROMPT (C:\>)
2. START-RUN-TYPE COMMAND –OK-TYPE CD\ENTER. THEN U WILL C-PROMPT (C:\>)
3.START-PROGRAMS-MSDOS PROMPT- TYPE CD\ENTER. THEN U WILL C-PROMPT (C:\>)
FROM MS DOS TO WINDOWS
C:\> EXIT PRESS ENTER
MS DOS COMMANDS
1. Cls command:-
SYN: C:\>CLS ENTER
CLEARS THE SCREEN
2. DATE COMMAND
SYN : C:\>DATE ENTER
DISPLAYS CURRENT DATE
3. TIME COMMAND
SYN: C:\>TIME ENTER
DISPLAYS CURRENT TIME
4. VER COMMAND
SYN: C:\>VER ENTER
DISPLAYS VERSION OF OS
5. V OL COMMAND
SYN C:\>VOL ENTER
DISPLAYS THE VOLUME LABEL OF C-DRIVE
6. LABEL COMMAND
SYN C:\>LABEL ENTER
USED TO CHANGE THE VOLUME LABEL OF C-DRIVE.
FILE COMMANDS:-
7.CREATING A FILE :-
COPY CON COMMAND :-
SYN C:\>COPY CON FILENAME ENTER
EX:- C:\>COPY CON RAVI ENTER
F6 ENTER TO SAVE THE FILE
7. TYPE COMMAND
SYN C:\>TYPE FILENAME
C:\>TYPE RAVI
8. COPYING A FILE :-
C:\>COPY OLDFILE NEWFILE
C:\>COPY RAVI KUMAR
9. RENAMING A FILE:-
C:\> REN OLDNAME NEWNAME
C:\>REN RAVI HARI
10. DELETING A FILE
C:\>DEL FILENAME
C:\>DEL RAVI
11. CREATING DIRECTORY
C:\>MD DIRECTORYNAME
C:\>MD SOFTTECH
12. ENTERING INTO A DIRECTORY
C:\>CD DIRECTORYNAME
C:\>CD SOFTTECH
C:\SOFTTECH>COPY CON JK1
--------------
------------
F6 ENTER
C:\SOFTTECH>COPY CON JK2
--------------
------------
F6 ENTER
C:\SOFTTECH> DIR ENTER
CREATING A SUB DIRECTORY
C:\SOFTTECH>MD PHANI
C:\SOFTTECH>CD PHANI
C:\SOFTTECH \ PHANI>COPY CON JK3
-----
----
F6 ENTER
C:\SOFTTECH \ PHANI>COPY CON JK4
-----
----
F6 ENTER
C:\SOFTTECH \ PHANI>DIR ENTER
TO COME OUT OF SUB DIRECTORY TO MAIN DIRECTORY (OR) MAIN DIRECTORY TO C:\> USE CD.. COMMAND
C:\SOFTTECH \ PHANI>CD.. ENTER
C:\SOFTTECH>CD..
C:\>
TO COME OUT OF SUB DIRECTORY TO C:\> USE CD\ COMMAND
C:\SOFTTECH \ PHANI>CD\ ENTER
C:\>
DIR COMMANDS
C:\> DIR ENTER
IT WILL DISPLAY ALL FILES AND DIRECTORIES
C:\> DIR /P ENTER
IT WILL DISPLAY ALL FILES AND DIRECTORIES IN PAGE WISE MANNER
C:\> DIR /W ENTER
IT WILL DISPLAY ALL FILES AND DIRECTORIES IN WIDTH WISE MANNER
C:\> DIR /L ENTER
IT WILL DISPLAY ALL FILES AND DIRECTORIES IN LOWER CASE
C:\> DIR /O /P ENTER
IT WILL DISPLAY ALL FILES AND DIRECTORIES IN ASCENDING ORDER
C:\> DIR /ON /P ENTER
IT WILL DISPLAY NAMES IN ASCENDING ORDER
C:\> DIR /O:-N /P ENTER
IT WILL DISPLAY NAMES IN DECENDING ORDER
C:\> DIR /OS /P ENTER
IT WILL DISPLAY FILE SIZES IN ASCENDING ORDER
C:\> DIR /O:-S /P ENTER
IT WILL DISPLAY FILE SIZES IN DECENDING ORDER
C:\> DIR /OD /P ENTER
IT WILL DISPLAY DATES IN ASCENDING ORDER
C:\> DIR /O:-N /P ENTER
IT WILL DISPLAY DATES IN DECENDING ORDER
C:\>DIR /A ENTER
IT WILL DISPLAY ALL FILES AND DIRECTORIES WITH INCLUDING HIDDEN FILES & DIRECTORIES
C:\>DIR /AH ENTER
IT WILL DISPLAY ONLY HIDDEN FILES & DIRECTORIES.
C:\>DIR /AD/W ENTER
IT WILL DISPLAY ONLY DIRECTORIES.
PROMPT COMMAND:-
TO CHANGE THE PROMPT
SYN :C:>PROMPT TEXT
EX:- C:\>PROMPT RAVI
RAVI PROMPT $P$G
C:\>
EDIT COMMAND
TO EDIT (MODIFY) THE CONTENTS OF A FILE
SYN C:\>EDIT FILENAME
EX: C:\>EDIT RAMU
FILE---SAVE
FILE--- EXIT
ATTRIB COMMAND
SYN C:\>ATTRIB +H +R FILE OR DIRECTORY
EX C:\>ATTRIB +H +R RAVI
+H HIDE (IT WILL NOT
DISPLAY IN DIR COMMAND. IT WILL DISPLAY DIR /AH COMMAND.
+R READ ONLY (WE CAN NOT DELETE THE FILE AND WE CAN NOT MODIFY THE FILE)
SYN C:\>ATTRIB -H -R FILE OR DIRECTORY
EX C:\>ATTRIB -H -R RAVI
-H HIDE (IT WILL
DISPLAY IN DIR COMMAND.
-R READ ONLY (WE CAN DELETE THE FILE AND WE CAN MODIFY THE FILE)
DOSKEY COMMAND:-
SYN C:\>DOSKEY ENTER
THIS COMMAND IS USED TO STORE THE COMMANDS IN BUFFER AREA. AND THOSE COMMANDS CAN BE RETRIVED BY USING UP ARROW OR DOWN ARROW.
CREATING BATCH FILES:
C:\> COPY CON STC.BAT
DATE
TIME
VER
VOL
F6 ENTER
EXECUTE THE BATCH FILE:
SYN C:\>BATCHFILE ENTER
EX C:\> STC