SCJP, SCJD, SCWCD, SCBCD
Originally posted by Darya Akbari:
Hi,
I am trying to write a DOS batch file that automatically renames all the files in the current directory into their old filenames prefixed by a 4 digit number. And I don't want AWK.
Any solutions are very welcome .
Regards,
Darya
SCJP, SCJD, SCWCD, SCBCD
SCJP, SCJD, SCWCD, SCBCD
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Originally posted by Darya Akbari:
Hi Ryan,
thanks a lot for this one liner. What when I want the 4 digit number be 0001 0002 ... 9999 (according to i) ?
If we can solve this then it's exactly what I am looking for .
Regards,
Darya
SCJP, SCJD, SCWCD, SCBCD
SCJP, SCJD, SCWCD, SCBCD
SCJP, SCJD, SCWCD, SCBCD
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
SCJP, SCJD, SCWCD, SCBCD
Originally posted by Darya Akbari:
Thanks Ryan,
it's near perfect. Only the & character does not translate. In case you have a quick solution I'm very interested. Anyway you already did a great job for me thanks.
Regards,
Darya
Originally posted by Darya Akbari:
When DOS Batch scripting is there why not using it?
Alco-Haul: We move spirits.
Demented Deliberations of a Dilettante
SCJP, SCJD, SCWCD, SCBCD
Don't get me started about those stupid light bulbs. |