Created On:  23 August 2011

Problem:

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".

Resolution:

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:

       "C:\Program Files\Borland\StarTeam Datamart\StarTeamDatamart.stjava"

Save the file as a .bat file. If the path name to the StarTeamDataMart.stjava includes spaces you should enclose the path name within quotes.

When creating the scheduled task select the batch file as the application to run.
Incident #2533752