Module2 - DOS
Module2 - DOS
What is DOS?
Stands for "Disk Operating System."
The first operating system used by IBM-compatible
computers.
It was originally available in two versions that were
essentially the same, but marketed under two different
names.
PC-DOS was the version developed by IBM and sold to
the first IBM-compatible manufacturers.
MS-DOS was the version that Microsoft bought the
rights to, and was bundled with the first versions of
Windows.
DOS
DOS uses a command line, or text-based interface, that
allows the user to type commands.
Syntax:
SET /P <var> = [<prompt message>]
Example:
------------------------------------------------------------------------------------------------
@ECHO OFF
SET /P uname=Please enter your name:
IF "%uname%"=="" GOTO Error
ECHO Hello %uname%, Welcome to DOS Scripting!
GOTO End
:Error
ECHO You did not enter your name! Bye bye!
:End
PAUSE