Link to home
Start Free TrialLog in
Avatar of MDWinter
MDWinter

asked on

Use current month number in a batch file.

Hi,

I have written a batch file which makes a call to an external file. As part of the call it sends two numbers, which represent a start month and an end month.

I want the batch file to send the CURRENT month number instead of a hard-coded value.

I've attached the code from the batch file - I want it such that if I run the file in February, the call will change from "Parm3:12" to "Parm3:2"

Thanks.
"D:\Visual CUt\Visual CUT.exe" -e "D:\Bulk Reports\reports\eom_statistics\manifestanlaysis.rpt" "Export_File:D:\Bulk Reports\Output\eom_statistics\Summary.pdf" "parm1:2010" "parm2:1" "parm3:12" "parm4:*" "parm5:*" "parm6:*" "parm7:LON" "parm8:EXB" "parm9:*" "parm10:*" "parm11:London Baggage" "parm12:*"

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MDWinter
MDWinter

ASKER

Works perfectly - thanks.