Next: case sensitivity, Previous: long names, Up: Common features [Contents][Index]
When writing a file to disk, its long name or short name may collide
with an already existing file or directory. This may happen for all
commands which create new directory entries, such as mcopy,
mmd, mren, mmove. When a name clash happens, mtools
asks you what it should do. It offers several choices:
overwriteOverwrites the existing file. It is not possible to overwrite a directory with a file.
renameRenames the newly created file. Mtools prompts for the new filename
autorenameRenames the newly created file. Mtools chooses a name by itself, without prompting
skipGives up on this file, and moves on to the next (if any)
To chose one of these actions, type its first letter at the prompt. If you use a lower case letter, the action only applies for this file only, if you use an upper case letter, the action applies to all files, and you won’t be prompted again.
You may also chose actions (for all files) on the command line, when invoking mtools:
-D oOverwrites primary names by default.
-D OOverwrites secondary names by default.
-D rRenames primary name by default.
-D RRenames secondary name by default.
-D aAutorenames primary name by default.
-D AAutorenames secondary name by default.
-D sSkip primary name by default.
-D SSkip secondary name by default.
-D mAsk user what to do with primary name.
-D MAsk user what to do with secondary name.
Note that for command line switches lower/upper differentiates between primary/secondary name whereas for interactive choices, lower/upper differentiates between just-this-time/always.
The primary name is the name as displayed in Windows 95 or Windows NT: i.e. the long name if it exists, and the short name otherwise. The secondary name is the "hidden" name, i.e. the short name if a long name exists.
By default, the user is prompted if the primary name clashes, and the secondary name is autorenamed.
If a name clash occurs in a Unix directory, mtools only asks whether to overwrite the file, or to skip it.
Next: case sensitivity, Previous: long names, Up: Common features [Contents][Index]