I need to create a Air application done with Flex that will/must
execute a JSFL or a batch file to automate most of what i do.
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:\automate";
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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to