In bat files there is an automatic variable called DATE that contains the current date. On my Dutch XP computer:[code]ECHO %DATE%do 28-05-2009[/code]"do" is short for Donderdag - Thursday.So, I guess you can do something like this:[code]SET DAY=%DATE:~0,2%IF /I "%DAY%" EQU "mo" SET DAY=1IF /I "%DAY%" EQU "tu" SET DAY=2IF /I "%DAY%" EQU "we" SET DAY=3.....[/code]Oh, and to prevent those smileys in your posts, select the checkbox labeled " Check this if you'll be adding code (or don't like smileys)".

Dont worry I just realised I could enter the information as IF statements in my existing code.

One other quick query, if I want to rename a file that drops into a folder with two different filenames i.e. two versions now exist each with its own unique filename can I just ad in another "set target " line or do I have to use some sort of copy function?

e.g.

a file arrives called 001.pdf

I extract the page number as 001 (%PAGENO%)

If the processing parrameters are met the file is processed (eg is it a pdf?)