I have written an AIR application which calls 3rd party console exe utility which produces files as an output.
However, these files are output to "C:\Program Files\Adobe\Flex Builder 3\" for some reason.
Question is: how to specify folder for output?
P.S.To call 3rd party console utility I have used FluorineFx Aperture v126.96.36.199.
I am not familiar with how the third-party EXE you are using decides where to save files. However, if you can pass a file path to the EXE, there are a number of ways of obtaining common directory paths in AIR (see http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7fe4. html#WS5b3ccc516d4fbf351e63e3d118666ade46-7dbe).
Also, you may consider using AIR 2.0, when it becomes available, to interface with the EXE. (Communicating with native applications is a new feature in AIR 2.0.) See http://blogs.adobe.com/air/.
It looks like the path issue is OS related not AIR. Looking forward for AIR2
Now to workaround this I have created BAT file to first specify current
folder before calling the exe utility.
The BAT file is called from AIR and is sent three parameters:
%1 - Output dir parameter
%2 - Utility dir parameter
%3 - File to process
--- start.bat ---
Then from AIR I construct string to call the BAT file:
"C:\Program Files\MyAIRApp\start.bat" "C:\Program Files\MyAIRApp\Output\"
"C:\Program Files\MyAIRApp\" "C:\1\demo.pdf"