| View previous topic :: View next topic |
| Author |
Message |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Wed Jun 20, 2007 8:49 am Post subject: rename files in 6.x without using regex |
|
|
user question (6.x where there is no regex)
I am trying to move an rename some files -
Have 3 files in one directory
W_FERRIC_1_20070618_1.TXT
W_PAC_1_20070618_1.TXT
S_FERRIC_1_20070618_1.TXT
I want to rename the W to 7 and the .TXT to .txt and to leave the S_ file wheer it is - thats it - but cannot do it
I have tried W^.TXT rename to 7^.txt - but this doesnt change the .TXT bit
I have tried W*.TXT to 7*.txt but this renames all three files
Have also tried many other combinations |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Wed Jun 20, 2007 8:50 am Post subject: |
|
|
In 6.x, you would have to do two rename tasks in sequence:
1) rename W_ to 7_
2) rename .TXT to .txt |
|
| Back to top |
|
 |
|