Sunday, November 25, 2007

Operating Systems: File management cmds

You want to copy the contents of a fixed hard disk to a removable hard disk for backup.
Which command can copy all files, directories, and subdirectories to another disk all at once?

1. FDISK
2. SETUP
3. SCANDISK
4. >>XCOPY
5. COPY

Explanation : The COPY command copies all files in the current or specified directory to a target drive and/or directory. The XCOPY command copies all files in the current or specified directory, and all files and subdirectories below it, to a target drive and/or directory. The XCOPY command can be used to copy the entire contents of one drive onto another drive.
If you want to copy all files from C: drive to D: drive the command would be:
XCOPY C:\*.* D:\*.* /S

The FDISK utility can create or remove partitions and set the active partition on a hard disk.

The SETUP utility in DOS or Windows is used to install the operating system onto the active partition.

The SCANDISK.EXE utility is used to find and correct problems such as lost clusters (pieces of files that have been disassociated from the parent file) on a hard disk. It can also detect bad sectors on a disk, try to recover any data contained in bad sectors, and "lock out" the bad areas from future use.
Objective: Operating Systems