![]() ![]() The following copies a file from an MS-DOS floppy disk to your Linux system: $ mtype b:/readme Table 10-6: The mtools Access CommandsĬopies a file to and from an MS-DOS disk or your Linux system. For example, to display a file on drive B on an MS-DOS disk in the second floppy drive, use mtype and the name of the file preceded by b:/. A list of mtool commands is provided in Table 10-6. You can create MS-DOS directories with mmd and erase MS-DOS files with mdel. Most of the standard MS-DOS commands are available as mtool operations. The next example lists the files on the MS-DOS disk in your floppy drive, and then changes to the docs directory on that drive: You can use the mdir command to list files on your MS-DOS disk, and you can use the mcd command to change directories on it. ![]() The next example copies the file mydata to the MS-DOS disk, and then copies the preface file from the disk to the current Linux directory.Ĭurrently, mtools cannot access Windows XP, NT, and 2000 NTFS partitions. Unlike MS-DOS, which defaults the second argument to the current directory, you always need to supply the second argument for mcopy. The directory docs on the A drive would be referenced by the pathname a:/docs, not a:\docs. Unlike normal DOS pathnames, pathnames used with mtool commands use forward slashes instead of backslashes. You specify the MS-DOS disk with a: for the A drive. For example, to copy a file from an MS-DOS floppy disk to your Linux system, use the mcopy command. For an MS-DOS floppy disk, place the disk in your floppy drive, and you can then use mtool commands to access those files. With mtools, you needn't mount an MS-DOS partition to access it. No special operations, such as mounting, are required. The mcopy command enables you to copy files to and from an MS-DOS floppy disk in your floppy drive or a Windows partition on your hard drive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |