Multiple Cards via Command Line
Some Schools/Districts will want to schedule multiple cards with differing settings for Principalm. A user can do this with the Connect user interface by changing the settings and rerunning the export. To automate this process follow the steps listed below:
A card is defined as each separate grouping of information that you want for a given device. Before you setup the commands you must setup the settings in the Connect user interface. A new user must be added if separate passwords are preferred. Make sure all Connect UI settings are completed prior to setting up the commands.
Setting up Connect UI:
On the Schools tab:
Setting up multiple cards:
<PPSchoolConf tag, if you wish to include a given school on this card, set
Import= to Import="1" if you do not wish to include a school set it to Import="0"
Repeat above steps for each card.
Setting up the Command Line:
Typically your Windows command line will look like this:
Connectcmd.exe –a1 –o"C:\ExportFolder\High School" -i"C:\ExportFolder\High School\prefs"
Where -a = user, -o = card output location, -i = prefs file location
Note: The batch file should be created in the same location as connect.exe ie: C:\Program Files\Discovery Software\Principalm
You can now use a Task Scheduler to schedule each command line, or create a batch file to create all of your cards at the same time. The export paths can then be shared to each school or appropriate location. The user would then just need to copy the contents of this folder to their SD Card or device to have updated principalm data available.
In the case of iOS this folder would be used as the root and directory parameters, see Principalm Update Service Command Line for assistance. Example:
"Principalm Update Service.exe" -ports "8080" -root "C:\ExportFolder" -directory "High School" -tag "Principalm" -user "Default" -date "2011-04-06T13:36:24"
You will also need to copy the contents of the database folder into the main ExportFolder. Add this line after the connect.exe command
Copy "C:\path of DB folder"*.* "C:\path of SCHOOL folder"\ /Y
If all Cards required for iOS are off the root ExportFolder, then you will only need to run the Principalm Update service once, and the other directories will be available by using the Link button on Principalm for iOS.
