Hi all,

I've been trying the AIR 2.0 sdk to play a bit with the new classes,
and I'm stuck with a little problem...

How do I pass arguments to a .exe file?

It seems it's possible according to the official doc :
http://labs.adobe.com/wiki/index.php/AIR_2:Developer_FAQ#How_do_I_launch_.bat_files_using_the_native_process_API_in_AIR2.3F

They says it's possible to call a .bat by passing arguments to the
cmd.exe process and that's exactly the kind of stuff I'd like to do.

My code :
>>> var myFile:File = 
>>> File.desktopDirectory.resolvePath("C://SWFTools/pdf2swf.exe");

And on a click on a button :
>>> myFile.openWithDefaultApplication();

My arguments I'd like to pass are that kind :
>>> C:/pdf/test.pdf -o C:/pdf/result.swf

I tried to add this string to my resolvePath function, but when I'm
doing this, my File doesn't exists for AIR any longer...

Any tips?

Thanks a lot,
Cheers,

-Jean-Christophe TURIN-

--

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