Basic Ms Dos
Basic Ms Dos
History
MS-DOS 1.0 was released in August 1981,
and was updated until April 1994 when it was
replaced by Windows 95
All versions of windows still contain some type
of DOS, in windows 95 and 98 you can go to
run and type command to get to DOS prompt,
in NT, 2000, and XP you can type CMD and
get DOS.
Introduction
absolute path
C:\Windows\calc.exe
Syntax :
C:\ PROMPT Promptname
E.g.
PROMPT NCIT
Syntax :
C:\>DATE
E.g. C:\>DATE
Removing unwanted Files
command line.
Go to Run –> cmd. This should open the command
prompt.
F:\>edit test.txt
F:\>edit 123.docx
F:\>dir>1234.txt
Batch file
C:\>set /a 2+2 4
C:\>set /a 2*(9/2) 8
C:\>set /a (2*9)/2 9
C:\>set /a "31>>2" 7
Note that we had to quote the shift operator since it
would otherwise be misinterpreted as a "redirect stdout
and append" operator.
Say you have two files (or twenty) named textfile1.txt and
textfile2.txt.
You want to create a new text file that combines the two.
This will take all the files with the extension .txt and
create a new text file called result.txt out of all of them.
Finding Text Inside Files in MS-DOS