File Mover Blog

January 16, 2026

How to get week number from filename

Week number from filename

Q: I have tried to look at your blog and pascal scripts, but have not found what I am looking for, so maybe you could help.

I would like to rename files with filename starting with a date to year and two digit week number.
Example: 18-01-2026-different-names-etc.pdf
New filename: 202603-different-names-etc.pdf

A: This is possible using our scriptin option

  • Destination Setup, you need an extra Destination:
    • First Destination must be our Pascal Script
    • Second Destination will be your output

limagito file mover destination setup

  • Add the following Pascal Script in the First Destination, script: link

limagito file mover week number from filename

  • Enable and add the following File renaming setup in the Second Destination (= your output directory):

limagito file mover windows folder as destinationlimagito file mover file renaming setup

  • RunTime Log Result:

limagito file mover runtime log result

If you need any help about this ‘week number from filename’ question, please let us know.

Best Regards,

Limagito Team

#basic #managedfiletransfer #filetransfer #filemanagement

By Limagito-Team Pascal Script Rename Share:
SEARCH