QB / QB64 Discussion Forum      Other Subforums, Links and Downloads      Archived Pascal Resources    Search
Respond to this messageReturn to Index
Original Message
  • Batch file challenge: Is this possible? (or can it only be done with assembly language)
    • Solitaire (Login Solitaire1)
      S
      Posted May 2, 2004 1:38 PM

      Suppose you want to rename a bunch of files beginning with:

      WXYZ111, WXYZ112, WXYZ113, etc.

      to:

      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.
    Your Name
    Your Email
    (Optional)
    Message Title
    Message Text
    Options Also send responses to my email address