QB / QB64 Discussion Forum
Other Subforums, Links and Downloads
Archived Pascal Resources
Respond to this message
Return to Index
Batch file challenge: Is this possible? (or can it only be done with assembly language)
Posted May 2, 2004 1:38 PM
Suppose you want to rename a bunch of files beginning with:
WXYZ111, WXYZ112, WXYZ113, etc.
ABCDE111, ABCDE112, ABCDE113, etc.
Notice the new file names have an extra character before the numbers, so if you try to do this:
REN WXYZ* ABCDE*
it will overwrite the first number and result in:
ABCDE11, ABCDE12, ABCDE13, etc.
There are commercial programs available that will do it correctly. Maybe it can only be done with assembly language, but I was wondering if it can be done with a batch file.
Also send responses to my email address