Ms-Dos: 1.1.1) Transient Part
Ms-Dos: 1.1.1) Transient Part
Ms-Dos: 1.1.1) Transient Part
Append It lets programs open data files as if they were in the current directory.
Assign It is used to reassign drives when programs work only with specific drives.
Attrib It changes file attributes, which are setting in every DOS file.
Backup It lets you backup your hard disk onto as many floppies as required.
Restore command can be used to use backup files.
Chkdsk It checks disk status, memory status, files and flags unidentifiable files.
Comp It compares two files for identical content and reports upto 10 mismatches.
CNO (8), Extension (3), Reserve (10), Attribute (1), Time (2), Date (2), FBN (2),
Size(4)
1.3.2.1) FAT:
It maintains the next block location of a file as a link list manner. Two copies of
FAT are maintained in the disk for security purpose. In floppy disk drive 12 bit FAT are
used. In case of hard disk drive (HDD) either 16 bit or 32 bit FAT are used.
1.3.2.2) FAT32:
FAT 32 is and improved version of the FAT file system that allows disks over
two GB to be formatted as a single drive. FAT 32 also uses smaller clusters than FAT
drives, resulting in a more efficient use of space on large disks. It also contain boot strap
which load the operating system.
1.4)DOS COMMANDS:
1.4.1) To show or create a new date:
C:\>DATE
1.4.15) To put off the command prompt and show the execution of result
only
ECHO OFF
C:\>TYPE a.txt
[to display the content]
1.6) ATTRIB:
Each file in DOS has various attributes attached to it. Thus attributes
decide the fate of the file. Among them are read only, hide, etc. So you can
change the attribute of a file using the command called attrib, and the
options attached to it. The command is:
C:\> Attrib modes path/switches
where path is the path of the file whose attributes you want to change.
Various switches in use are:
Switch Action
+A Changes file setting to archived
-A Changes files to not archived
+H Changes specified file(s) to hidden which means the
file(s) will not be visible to most DOS operations.
-H Makes hidden file(s) visible again
+R Changes specified file(s) to read-only which means
the file(s) cannot be overwritten or erased
+S Marks specified file(s) as DOS system file(s)
-S Removes DOS system file setting
/S Used with the file names that contain wildcard
character or subdirectory names without file names.
This option will include matching files in sub
directories nested below the current directory.
1.7) DIRECTORY MANAGEMENT COMMANDS:
C:\> MD acc
[to create a new directory]
C:\> CD acc
[to enter in a directory]
C:\acc\> CD..
[to go back 1 step inside the root directory]
C:\>MD c:\acc\a
[to make directory with any position]
C:\>CD c:\acc\a
[to change the path]
C:\acc\a>CD
[to display the current position]
C:\acc\a
[current path is displayed]
C:\acc\a>CD\
[to go back directly to root]
C:\>
If (*) asterisk comes before dot it can represent zero to eight characters but
when present after dot it will represent zero to three characters.
C:\>DIR *.txt
It will list all the files with txt extension
C:\>DIR ?as*.txt
It will list all the files with txt extension having ‘as’ alphabet being present
in all the files after first character.
C:\>DIR/P
It will list all names of the directory and subdirectory in page-wise order.
C:\>DIR/W
It will list all names of the directory and subdirectory in width-wise order.
C:\>DIR/B
It will list only the names of the directory and their size with no more detail.
C:\>DIR/L
[in lowercase order]
C:\>DIR/AH
[all hidden files]
C:\>DIR/AR
[all read only files]
C:\>DIR/AS
[all system files]
C:\>DIR/AD
[all directory files]
C:\>DIR/ON
[ in alphabetical order of name]
C:\>DIR/OE
[in external files wise]
C:\>DIR/OS
[in ascending order of file size]
C:\>DIR/OD
[in date wise order]
C:\>DIR/S
[search recursively]
C:\>DIR/S a.txt
[search a file recursively]
C:\>DELTREE
It will remove or delete all files and folder or entire tree of root directory,
irrespective of the presence or absence of files or folder in the root directory.
/?:
The inclusion of /? to MEM and SCANDISK command will generate help.
C:\>MEM/?
C:\>SCANDISK/?
SWITCH ACTION
/a Copies only those files matching the source specification that
also have their archive bit set.
/d: date Copies files that were modified on or after the specified date.
/e Creates subdirectories on the target location, even if there are
no files in them.
/m Resets the archive bit on a file after making the copy
/p Issues a prompt asking you to confirm the copy of each source
file.
/s Copies files matching the source specification that are found in
sub directories nested below the source subdirectory
/v Performs a verification check against the image of the file in
memory.
/w Causes XCOPY to pause before making copies allowing you
an opportunity to change disk in the source drive if necessary.
SWITCH ACTION
/BW Starts MSBACKUP in black and white for
monitors that have trouble displaying the screen
colors
/TD Backups up all files named in the specification
file that has changed since the last full backup.
/TF Backups all files named in the specification.
/TI Backups all files named in the specification file
that have changed since the last full backup
SWITCH ACTION
/A: mm-dd-yy Restores only those files that were modified on or
after the specified date, where mm is the month,
dd is the day and yy is year.
/B: mm-dd-yy Restores only those files that were modified on or
before the specified date, namely mm-dd-yy.
/D Displays file name(s) on the backup disk but does
not restore them.
/E: hh-mm-ss Restores those files modified at or earlier than the
specified time, where hh is the hour (in 24 hr.
format), mm is the minutes after the hour, and ss
is the seconds.
/L: hh:mm:ss Restores only those files that were modified at or
after the specified time.
/M Restores files that were modified since the last
backup was made
/N Restores files that were deleted since the last
backup
/P Prompts to confirm the restoration of files that
were changed since the last backup or marked as
read-only files.
/S Restores files in sub directories nested below the
specified target subdirectory.