A Datamart extraction can be executed manually by double-clicking the .stjava file that is created. However, when scheduling a windows task that points to the .stjava file the task fails with the error "%1 is not a Win32 executable".
There are a number of ways to create a scheduled task for the .stjava file. In the scheduled task wizard create the task as normal but when selecting the application browse to:
C:\Documents and Settings\%username%\Start Menu\Programs\StarTeam Datamart Extractor\StarTeam Datamart Extractor
This will call the DataMart shortcut which is a recognisable file for the task scheduler.
An alternative would be to create a batch file to run the application that the task scheduler can call. Using a text editor, for example notepad, enter the full path name to the StarTeamDataMart .stjava file: