Microsoft KB Archive/96955

From BetaArchive Wiki
Knowledge Base


RENAME Drops Character If Wildcard Is Used

Article ID: 96955

Article Last Modified on 5/12/2003



APPLIES TO

  • Microsoft MS-DOS 5.0 Standard Edition
  • Microsoft MS-DOS 5.0a
  • Microsoft MS-DOS 6.0 Standard Edition
  • Microsoft MS-DOS 6.2 Standard Edition
  • Microsoft MS-DOS 6.21 Standard Edition
  • Microsoft MS-DOS 6.22 Standard Edition



This article was previously published under Q96955

SYMPTOMS

You may receive unexpected behavior from the RENAME (REN) command if you use wildcard characters. This occurs only if the old and new names have different character lengths. For example, suppose you want to rename the following two files:

ndcsend.cm
ndcsend.obj


Rename them both using the following command:

ren ndc*.* tran*.*


The expected result is the following filenames:

transend.c
transend.obj


However, the following filenames are generated:

tranend.c
tranend.obj


STATUS

Microsoft has confirmed this to be a problem in MS-DOS versions 5.x, 6.0, 6.2, and 6.21. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: 6.22 5.00 5.00a 6.00 6.20

Keywords: KB96955