increment Filename

Results 1 to 2 of 2

Thread: increment Filename

  1. #1
    Billay Guest

    Default increment Filename

    How do I take a filename which is a string variable convert<BR>it and append a numeric number to it<BR>i.e. file.gif<BR>becomes file1.gif <BR><BR>Please show code example<BR>Thank You in advance<BR>Billay<BR>

  2. #2
    schnookums Guest

    Default RE: increment Filename

    &nbsp;<BR><BR>strFile = "file.gif"<BR>intCounter = 5<BR><BR>strNewFile = left(strFile, instr(strFile, ".") & intCounter & mid(strFile, instr(strFile, ".") + 1)<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts