Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. What are the purposes of switches in CLI/DOS commands? Identify and explain w

ID: 3875854 • Letter: 1

Question

1. What are the purposes of switches in CLI/DOS commands? Identify and explain what any two are in the COPY command.

2. How many internal commands are in CLI/DOS today? List any five internal commands. How many external commands are in CLI/MS-DOS today? List any five external commands.

3. What are the *technical* differences between .COM .EXE and .BAT files?

4. How much third party support is available for learning how to use CLI/DOS today? And what is that? Label as A. Give the URL of three Web sites that support CLI/DOS like how to use a command as their primary goal. Label as B C D.

5. Why is backwards compatibility important in a business environment? How does MS-DOS support that?

Explanation / Answer

1.) Switches serves the purpose of what you can say, power level modification to user, that is, it redefines or tailors the regular commands to suit the user's needs. We might need to see the output in different way or to different conditions, switches provide such facility, to add to its utility of an exisiting command.

Example, for COPY command we have /V. This command verifies if the new files are written correctly.

its syntax goes as :COPY /V source[/A | /B] destination [/A | /B]

Another example can be seen as /-Y . This very helpful switch prompts the user before overwriting an exisiting destination file.

2.) There are more than 30 internal commands, exactly i have no idea but most documentations lists 40 of them.

internal commands are those commands stored in your memory for prompt use.

5 Internal commands:

CD- Change directory

CLS- Clear screen

COPY- Copying a file

RD- Remove directory.

REN- Rename file

External commands are 14 in number as listed in most documentation.

These commands are stored on your disk, thus to process them, you must have the external disk on which they are stored.

Examples:

FORMAT- used to format your disk drive, it deletes all old record and write new track and sector in disk.

FIND - With the use of this command we can find in a text file a specific string.

CHKDSK- this command checks the status of the disk specified (that is checks for any bad sectors).

MEM- this command displays free and used amount of memory

XCOPY- This command is generally used when we require to copy a directory, it is much faster than the COPY command.

3.) Technically, a .COM file was supposed to be 8086 microprocessor's codes. It is be loaded at a specified location. A .COM file is allocated only a limited memory so it doesn't require a structure or header.

This is technically the major difference between .COM and .EXE, an EXE file deals with dynamic reallocation of memory, this requires an EXE file to be prpoerly structured and including a header.

.BAT files are just a heap of commands to be executed as if written on the command prompt itself.

4.) a)E-learning websites,Books and online video lectures all are available to learn DOS.

b) www.c3scripts.com

c) www.udemy.com

d) www.dummies.com

5) Business environment requires ever evolution of their softwares, in this, so that previous versions doesn't go fully uncompatible, backward compatibility plays an important role. With the intact feature of backward compatibility a file made from previous version of the same software can also be accessed by the new version.MS-DOS is one example of such language.

MS-DOS6 supports all the programs written in MS-DOS5.MS-DOS implemented backward compatibility using wildcards. Wildcard matching