DOS Tutorial

MS-DOS Operating System Most Personal Computers run under the MS-DOS Operating System. MS-DOS being the Microsoft Disk Operating System.

It is estimated that almost 10 million machines run under the MS-DOS Operating System and some 20,000 or more end-user applications have been published to run with it.

 

The Operating System is the program which provides organized services to the computer user and the application programs that they wish to use.
These services consist mainly of access to the hardware resources such as the disk drives, keyboard, etc.

 

Remove a Subdirectory

We cannot be in the subdirectory that we wish to remove. We will need to return to the root directory (C:\> prompt).   Directions: 1. Type: cd.. and press Enter. 2. We should be back in the root directory. 3. Type: rd \info and press Enter. 4. Type: dir *. and press Enter. 5. Notice …

Remove a Subdirectory Read More »

attrib

Change or view the attributes of one or more files. It defaults to displaying the attributes of all files in the current directory.   Options: • To add an attribute attach a ‘+’ in front of it. • To remove an attribute attach a ‘-‘ in front of it • Attributes include o A – …

attrib Read More »

chkdsk

Verifies a hard disk or a floppy disk for file system integrity.   Options: • /F : Fixes errors on the disk • /V : Displays the full path and name of every file on the disk   SYNTAX: chkdsk drive [[path]filename] [/F] [/V]      

copy

Copy files from one location to another. The destination defaults to the current directory. If multiple source files are indicated, the destination must be a directory, or an error will result.   SYNTAX: copy filespec [destination]   Files may be copied to devices (e.g. “copy file lpt1” would send the file to the printer on …

copy Read More »

copy device

SYNTAX: copy device filename   In this usage, data is written from the given device to the file until the end-of-file character (ASCII character 26, which may be typed as ctrl-Z) is encountered. The most commonly used device is named con, which is short for “console”; thus, copy con filename would allow the user to …

copy device Read More »

del or erase

Deletes files.   SYNTAX: del filename erase filename To delete files in Quiet mode del /Q filename

deltree

Deletes a directory along with all of the files and subdirectories that it contains. Normally, it will ask for confirmation of such a drastic action.   SYNTAX: deltree [/y] directory   The /y parameter if present tells the deltree command to carry out without first prompting for confirmation.   The deltree command is not included …

deltree Read More »

dir

Displays contents of a directory.   Options : • /w : Wide list format • /p : Pause at every page • /s : Also look in subdirectories • /a[xx] : Display files with the specified attributes only • /o[xx] : Modifies sort order   SYNTAX: dir [options] [filespec]

echo

Prints its own arguments back out to the DOS equivalent of the standard output stream. Usually, this means directly to the screen, but the output of echo can be redirected like any other command. Often used in batch files to print text out to the user.   SYNTAX: echo this is text Outputs ‘this is …

echo Read More »

Edit

EDIT filename   Brings up the DOS Edit program so you can make changes in a text file. This is a very simple text editor and won’t work with regular word processing documents.  

exit

Exits the current batch script or the controlling thread. When running from Windows this will close the command prompt. SYNTAX: EXIT [/B] [exitcode] /B        Exit the current batch script and set ERRORLEVEL to exitcode Without this option, the controlling thread and any intermediate batch files are immediately exited, and the process return code is set to …

exit Read More »

fdisk

Manipulates hard disk partition tables. The name derives from IBM’s habit of calling hard drives fixed disks. When run from the command line, it displays a menu of various partitioning operations: 1. Create DOS partition or Logical DOS Drive 2. Set active partition 3. Delete partition or Logical DOS Drive 4. Display partition information 5. …

fdisk Read More »

format

Delete all the files on the disk and reformat it for MS-DOS In most cases, this should only be used on floppy drives or other removable media. This command can potentially erase everything on a computer’s hard disk.   /autotest and /backup is an undocumented feature. Adding it formats the drive without a confirmation prompt. …

format Read More »

help

It gives help in dos . help ‘command’ would give help on a specific command, in MS-DOS 6 a HELP program was started which would give more details and examples, earlier versions basically gave the same information as command/? would give.

InterLnk

MS-DOS 6 and above command to network PCs using a null modem cable or LapLink cable. InterLnk is the client-side program (InterSvr is the server) which mapped the drives of the machine running InterSvr to the local machine.

InterSvr

MS-DOS 6 and above command used to network PCs using a null modem cable or LapLink cable. The server-side version of InterLnk, it also immobilizes the machine it’s running on as it’s an active app (As opposed to a TSR) which must be running for any transfer to take pla

md or mkdir

Makes a new directory. The parent of the directory specified must already exist.   SYNTAX: md directory