Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I'm trying to do a rename where I want to,
for example rename these types of files in a for
loop. I've done it before but I can't seem to
remember the code I used:file format is something like this where ##
denotes numbers
[ab-c] abc abc abc! - ## [abc].xxxI want to rename them to
abc abc abc! ## [ab-c].xxxI tried a for-loop like this
for %x in ("^[*^]*[a-zA-Z\! ]??*[0-9]*.xxx") do
ren %x "%2 %5^[%1^].xxx"and another like
for %x in ("^[*^] *^[*^].xxx) do ren %x
"%2^[%1^].xxx"It usually just doesn't work, but once I
replaced the name of a file with %2[%1].xxx!!I know I'm obviously doing something wrong,
but I don't think I understand exactly how this
rename thing works with regular expressions.I've also seen a lot of %%x but dos just tells
me it doesn't recognize %%x when I enter it...
what does that mean and how do I make this
work?Thanks!

![]() |
64 bit and 32 bit
|
Dual booting.
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |