How can i on button press execute a command in the command prompt and get back the output in ActionScript?
问题 I have a GUI using Flex. I have a condition like i need to execute some command line arguments in the local machine and get the results back or output back to a textbox area. How can i do a button on submit, execute command in the local machine and return the output? Command to execute example: echo logfile.log | grep username Code: button1.onRelease = function () { // in this computer, it will now run a command, please wait. } My reference from the answer: https://gist.github.com/993905 回答1: