Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Move Command - Invalid function? (XP SP-2 Prof)

    Move Command - Invalid function?

    I

  2. #2
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Move Command - Invalid function? (XP SP-2 Prof)

    Are you running this on a workstation connected to a network drive or on the server itself? Have you checked the permissions (and shares if running on a workstation) on the folder/file?
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Move Command - Invalid function? (XP SP-2 Prof

    I've always found the MOVE command to be one of the most infuriating commands to get right. Could you give the complete command, please?

    Have you tried doing COPY, followed subsequently (when successful!) with DEL?

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  4. #4
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Move Command - Invalid function? (XP SP-2 Prof

    I

  5. #5
    Silver Lounger
    Join Date
    Apr 2001
    Location
    New York, New York, USA
    Posts
    2,328
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Move Command - Invalid function? (XP SP-2 Prof

    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.

    That means, subdirectory (folder) "junk2" doesn't exist in the folder (directory) where file "junk" is.
    Incorrest function means that MOVE command does NOT create new directories. Use command MD first.
    If you want to use MOVE command instead of REN command to rename a file, you must specify absolute (not relative) path and a new filename

    Example:

    MOVE /Y F:Buildjunk.txt F:Buildjunk2.txt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •