Hello People

 

I hope you can help with this one.

 

I am trying to set up a batch file to run on the first of every month to compile the stats for the previous month. I know how to get analog to compile stats for the current month but not for the last month.

 

How do I subtract a month from the date in a batch file?

 

I could use IF statements to change the month to the previous month but this does not work for January and I don’t know how to subtract one from the year in this case.

 

I hope you can help

 

Thanks

 

Giles Roadnight

http://giles.roadnight.name

 

Reply via email to