------------------------- MS-DOS v6.22 Help: MOVE --------------------------
<Notes> <Examples>                                               <Index>
----------------------------------------------------------------------------

                                    MOVE

Moves one or more files to the location you specify. The MOVE command can
also be used to rename directories.

Syntax

    MOVE [/Y|/-Y] [drive:][path]filename[,[drive:][path]filename[...]]
    destination

Parameters

[drive:][path]filename
    Specifies the location and name of the file or files you want to move.
    Also specifies the name of a directory you want to rename.

destination
    Specifies the new location of the file, or the new name of the
    directory. Destination can consist of a drive letter and colon, a
    directory name, or a combination. If you are moving only one file, you
    can also specify a filename if you want to rename the file when you move
    it. If you are moving more than one file, the destination must be a
    directory name. Moving a file to an existing file overwrites the
    existing file.

Switches

/Y
    Indicates that you want MOVE to replace existing file(s) without
    prompting you for confirmation. By default, if you specify an existing
    file as the destination file, MOVE will ask you if you want to overwrite
    the existing file. (Previous versions of MS-DOS would simply replace the
    existing file.) If the MOVE command is part of a batch file, MOVE will
    replace the file without prompting you. Specifying this switch overrides
    all defaults and the current setting of the COPYCMD environment
    variable.

/-Y
    Indicates that you want MOVE to prompt you for confirmation when
    replacing an existing file. Specifying this switch overrides all
    defaults and the current setting of the COPYCMD environment variable.

                                      ***

<Syntax> <Examples>
----------------------------------------------------------------------------

                               MOVE--Examples

Suppose C:\LETTERS is a directory. To move the files ED.TXT and SIGRID.TXT
from the current directory to the LETTERS directory on drive C, type the
following at the command prompt:

    move ed.txt,sigrid.txt c:\letters

To move the BILL.TXT file from the current directory to the LETTERS
directory on drive C and rename it ANN.TXT, type the following at the
command prompt:

    move bill.txt c:\letters\ann.txt

To rename the THISYEAR directory on drive C to LASTYEAR, type the following
at the command prompt:

    move c:\thisyear c:\lastyear

                                      ***

<Syntax> <Notes>
----------------------------------------------------------------------------

                               MOVE--Examples

Suppose C:\LETTERS is a directory. To move the files ED.TXT and SIGRID.TXT
from the current directory to the LETTERS directory on drive C, type the
following at the command prompt:

    move ed.txt,sigrid.txt c:\letters

To move the BILL.TXT file from the current directory to the LETTERS
directory on drive C and rename it ANN.TXT, type the following at the
command prompt:

    move bill.txt c:\letters\ann.txt

To rename the THISYEAR directory on drive C to LASTYEAR, type the following
at the command prompt:

    move c:\thisyear c:\lastyear

                                      ***

----------------------------------------------------------------------------
<Top of page>
Last update: December 07, 2002 14:45 by
Content © 1997 Microsoft Corporation
All else © 2000-2005
Counter