Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mcopy(1) [bsd man page]

MCOPY(1)						      General Commands Manual							  MCOPY(1)

NAME
mcopy - copy MSDOS files to/from Unix SYNOPSIS
mcopy [ -tnvm ] sourcefile targetfile mcopy [ -tnvm ] sourcefile [ sourcefiles... ] targetdirectory DESCRIPTION
Mcopy copies the specified file to the named file, or copies multiple files to the named directory. The source and target can be either MSDOS or Unix files. The use of a drive letter designation on the MSDOS files, 'a:' for example, determines the direction of the transfer. A missing drive des- ignation implies a Unix file whose path starts in the current directory Mcopy will allow the following command line options: t Text file transfer. Mcopy will translate incoming carriage return/line feeds to line feeds. n No warning. Mcopy will not warn the user when overwriting an existing file. v Verbose mode. m Preserve the file modification time. If the target file already exists, and the -n option is not in effect, mcopy asks whether or not to overwrite the file. MSDOS subdirectory names are supported with either the '/' or '' separator. The use of the '' separator or wildcards will require the names to be enclosed in quotes to protect them from the shell. The mcd command may be used to establish the device and the current working directory (relative to MSDOS), otherwise the default is A:/. SEE ALSO
mcd(1), mread(1), mwrite(1) BUGS
Unlike MSDOS, the destination directory may not be omitted. The '+' operator (append) from MSDOS is not supported. No other Mtools command requires the use of a drive letter designation on MSDOS files. local MCOPY(1)

Check Out this Related Man Page

MTOOLS(1)						      General Commands Manual							 MTOOLS(1)

NAME
Mtools - a collection of tools for manipulating MSDOS files SYNOPSIS
mattrib - change MSDOS file attribute flags mcd - change MSDOS directory mcopy - copy MSDOS files to/from Unix mdel - delete an MSDOS file mdir - display an MSDOS directory mformat - add an MSDOS filesystem to a low-level formatted diskette mlabel - make an MSDOS volume label mmd - make an MSDOS subdirectory mrd - remove an MSDOS subdirectory mread - low level read (copy) an MSDOS file to Unix mren - rename an existing MSDOS file mtype - display contents of an MSDOS file mwrite - low level write (copy) a Unix file to MSDOS DESCRIPTION
Mtools is a public domain collection of programs to allow Unix systems to read, write, and manipulate files on an MSDOS filesystem (typi- cally a diskette). Each program attempts to emulate the MSDOS equivalent command as closely as practical. MSDOS filenames are optionally composed of a drive letter followed by a colon, a subdirectory, and a filename. Subdirectory names can use either the '/' or '' separator. The use of the '' separator or wildcards will require the names to be enclosed in quotes to protect them from the shell. The regular expression "pattern matching" routines follow the Unix-style rules. For example, '*' matches all MSDOS files in lieu of '*.*'. The archive, hidden, read-only and system attribute bits are ignored during pattern matching. All options use the '-' (minus) flag, not '/' as you'd expect in MSDOS. The mcd command is used to establish the device and the current working directory (relative to the MSDOS filesystem), otherwise the default is assumed to be A:/. SEE ALSO
mattrib(1), mcd(1), mdel(1), mformat(1), mrd(1), mren(1), mtype(1), mcopy(1), mdir(1), mlabel(1), mmd(1), mread(1), mwrite(1) BUGS
An unfortunate side effect of not guessing the proper device (when multiple disk capacities are supported) is an occasional error message from the device driver. These can be safely ignored. local MTOOLS(1)
Man Page