I need help with AIR,Flex,JSFL and Batch Files
Posted on October 10th, 2008 in Other, jsfl |
I’m creating an Air application done with Flex and my problem is that it will/must execute a JSFL or a batch file. Currently i have tried using fscommand exec but failed, i even went into
var batFile:File = File.applicationStorageDirectory.resolvePath("test.bat" );
file = File.applicationStorageDirectory.resolvePath(this.txtRootDir.text + "\\test.bat" );
file.copyTo(batFile, true);
fscommand("exec","test.bat");
Where it copies the bat file from the source folder to the application folder, coz ffcommand, as what i know only execute script inside application folder (i might be wrong here).
The content of the test.bat is
PATH=”C:\testFolder”;
cd %PATH%
test.jsfl
the content of the jsfl is
fl.openDocument( ‘file:///c:/test.fla’ );
I’m okay with any answers, either hack or the real solution, or any suggestion, anything as long as i could get it to work. Thanks a lot












