Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2006, 01:40 PM
Junior Member
 
Join Date: May 2006
Posts: 7
Default Command Line Feedback

Hi

I run a commandline application from SWFKit using Shell.run(...). The command line application has several output. Is there a possibility to read this output with SWFKit?

I need this to check whether the commandline application terminated successfully or not.

Even better would be a way to read the commandline output while the commandline app is working. That way I could read how many percent the app has completed and show this in a graphically manner inside my SWFKit application.

And is there a way in SWFKit to check if an application started with Shell.run(...) is running?

Thanks a lot for your support!
Reply With Quote
  #2 (permalink)  
Old 07-10-2006, 12:41 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Command Line Feedback

SWFKit Pro v3 has the ability to read the output of a console program:

Code:
var msg = Shell.runConsole("ping www.microsoft.com");
trace(msg);
However, it cannot synchronously read the output of a running console program. The runConsole method will return only if the console program returns.
Reply With Quote
  #3 (permalink)  
Old 08-03-2006, 09:42 AM
Junior Member
 
Join Date: May 2006
Posts: 7
Default Re:Command Line Feedback

Thanks a lot.

Any idea on my second question?
> And is there a way in SWFKit to check if an application started with Shell.run(...) is running or is finished?
Reply With Quote
  #4 (permalink)  
Old 08-07-2006, 01:28 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Command Line Feedback

That's a little hard. You would have to write a dll to lanuch your application in a thread and wait for it to return. When it returns, the thread posts a message to the main window so that the main window will know when the app returns.
Reply With Quote
  #5 (permalink)  
Old 01-15-2007, 06:00 PM
Member
 
Join Date: Sep 2006
Posts: 38
Default Re:Command Line Feedback

Shouldn't I be able to use runConsole to run a .BAT file?

I've had a lot of trouble running an application (WITH PARAMETERS) from within Flex, and I was really hoping that runConsole might be the solution.

Steve
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:44 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.