S
SixSigmaGuy
I'm having trouble with the REN command with wild cards as used from the command prompt.
For example, in the REN command help, it says:
"For example, if you had files that are named smitha.doc, smithb.doc, and smithc.doc, you could use the ren smith*.doc smythe*.doc command. All file names automatically show the new spelling, and are renamed smythea.doc, smytheb.doc, and smythec.doc."
If I try the example, exactly as described, I don't end up with smythea.doc, smytheb.doc, and smythec.doc.
Instead, when I create three files named smitha.doc, smithb.doc, and smithc.doc and then execute the command:
ren smith*.doc smythe*.doc
I get:
C:\TestREN>ren smith*.doc smythe*.doc
A duplicate file name exists, or the file
cannot be found.
A duplicate file name exists, or the file
cannot be found.
C:\TestREN>dir
Volume in drive C is OS
Volume Serial Number is 0A07-21F5
Directory of C:\TestREN
05/17/2008 04:04 PM <DIR> .
05/17/2008 04:04 PM <DIR> ..
05/17/2008 04:03 PM 0 Smithb.doc
05/17/2008 04:03 PM 0 Smithc.doc
05/17/2008 04:03 PM 0 smythe.doc
0 File(s) 0 bytes
2 Dir(s) 48,010,428,416 bytes free
C:\TestREN>
This isn't how I recall REN working in previous versions of Windows. Anyone know if the REN command has changed or been broken?
For example, in the REN command help, it says:
"For example, if you had files that are named smitha.doc, smithb.doc, and smithc.doc, you could use the ren smith*.doc smythe*.doc command. All file names automatically show the new spelling, and are renamed smythea.doc, smytheb.doc, and smythec.doc."
If I try the example, exactly as described, I don't end up with smythea.doc, smytheb.doc, and smythec.doc.
Instead, when I create three files named smitha.doc, smithb.doc, and smithc.doc and then execute the command:
ren smith*.doc smythe*.doc
I get:
C:\TestREN>ren smith*.doc smythe*.doc
A duplicate file name exists, or the file
cannot be found.
A duplicate file name exists, or the file
cannot be found.
C:\TestREN>dir
Volume in drive C is OS
Volume Serial Number is 0A07-21F5
Directory of C:\TestREN
05/17/2008 04:04 PM <DIR> .
05/17/2008 04:04 PM <DIR> ..
05/17/2008 04:03 PM 0 Smithb.doc
05/17/2008 04:03 PM 0 Smithc.doc
05/17/2008 04:03 PM 0 smythe.doc
0 File(s) 0 bytes
2 Dir(s) 48,010,428,416 bytes free
C:\TestREN>
This isn't how I recall REN working in previous versions of Windows. Anyone know if the REN command has changed or been broken?