1)DOS commands common syntax. PATH and Switches in command. Solution The file ne
ID: 3652300 • Letter: 1
Question
1)DOS commands common syntax. PATH and Switches in command.Explanation / Answer
The file newfile will have exactly the same contents as the file oldfile. As always, DOS assumes oldfile is on the default drive and also places newfile on the default drive. The syntax of DOS commands when two filenames are required is usually "from to", i.e. the first filename is the source (or "from") file and the second is the destination (or "to") file. To copy a file from one disk to another, it is only necessary to precede the filename by a drive designation. If you are copying files between disks, then the copy can have the same filename as the original. In fact, if you do not supply a filename for the destination, DOS assumes that you want to use the same filename as the source. For example, if B is the default drive, the following command makes a copy of the file oldfile from the A disk on the B disk with the same name: B>copy a:oldfile On the other hand, if oldfile is on B (the default drive) and you would like a copy on the A disk, type: A>copy oldfile a: To display the contents of a text file on the monitor, you can use the DOS type command which has the following syntax: A>type filename As always, if the filename is not preceded by a drive specification, DOS assumes the file is on the default drive. To type a file on the A drive, use instead: B>type a:filename Not all files in DOS are textfiles. Files with the extension `.exe' or `.com' are executable programs stored in a binary format which cannot be typed.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.