Running TEAMPlanning in Batch.

NOTE: Errors on the command line crashes TEAMPlanning

Principle:

Now you can run TEAMPlanning with a command line.
Batch is not exactly the term, because TeamPlanning runs with a command line as an interactive program BUT screens are not show.

Wich use?
Suppose you manage 25 Teams and you want to publish the Teams calendars on your intranet EACH DAY or EACH HOUR... You can uses an AT command to run TEAMPlanning, specifying:
•	Wich range of dates you want to display
•	Wich view you uses
•	Wich report you want
•	Where these report can be stored with wich name.

The command is:

TEAMPlanning.exe /datefrom /dateto /’TEAM to display’ /PlanningView /ReportView /’Path to store the HTM report file’

All parameters are necessary!
You MUST enter it as follow:

/datefrom = /ddmmaaaa or /mmddaaaa depending of your date format 
datefrom and dateto are 8 caracters

/dateto = idem datefrom

/’TEAM to display’ name of the team to process
A TEAM name cn’t contains “/” single quote, double quotes

/Planning View is a keyword corresponding with the different view used in the ToolBar
Value can be: (Type keywords respecting MAJ/MIN)
Today
Tomorrow
ThisDay
ThisWeek
NextWeek
ThisMonth
NextMonth
Planning
ColorPlanning

/Report View is the HTM report used as used in the Toolbar
Value can be: (Type keywords respecting MAJ/MIN)
ReportHTMLPlan
ReportHTMLColor
ReportImage

/’Path to store the HTM report file’
is the path + the resulting file name to store the htm report file. You can use a disk path or an unc path
Related images files, background etc used in the htm report must be first copied into the destination path.

example:

teamplanning.exe /01012002 /01102002 /’My Best Friends’ /ThisWeek /ReportHTMLPlan /’\\My Server\TeamsPlannings\PlanningFriends.htm’

Create a file PlanningFriends.htm in \\myserver\TeamsPlannings who display the planning of This Actual Week of the team My Best Friends

NOTE that in this case datefrom and dateto are not used but NECESSARY