Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8135707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:30:12+00:00 2026-06-06T10:30:12+00:00

Is there a way to communicate with cmd (using native process) in adobe air.

  • 0

Is there a way to communicate with cmd (using native process) in adobe air.
As an example;
How to send “ping http://www.google.com” to cmd and capture the return values in Air.

Edit

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Program Files\Adobe\Adobe Flash Builder 4.5>ping www.google.com

Pinging www.l.google.com [209.85.175.103] with 32 bytes of data:
Reply from 209.85.175.103: bytes=32 time=1733ms TTL=50
Reply from 209.85.175.103: bytes=32 time=189ms TTL=50
Reply from 209.85.175.103: bytes=32 time=188ms TTL=50
Reply from 209.85.175.103: bytes=32 time=186ms TTL=50

Ping statistics for 209.85.175.103:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 186ms, Maximum = 1733ms, Average = 574ms

C:\Program Files\Adobe\Adobe Flash Builder 4.5>   

I can print above from Air application. I need to know is there a specific way to grab the values of Minimum = ?, Maximum = ? and Average = ?
Planning to explode the string. Is there another way. Please help me

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T10:30:15+00:00Added an answer on June 6, 2026 at 10:30 am

    You should read up on Interacting with Native Processes in AIR. What you write in the command prompt (ping in your case) is another exe file located in a folder specified in the Windows Path. So you’ll actually have to invoke the ping.exe with the NativeProcess class in AIR. OR, you could study how the exe works and then implement that logic in your AIR application.

    EDIT

    After you have edited your question, here are more details:

    You use Regular Expressions (follow that link and learn about regular expressions)

    Since you want to match this pattern

    Minimum = (number)ms, Maximum = (number)ms, Average = (number)ms

    your regular expression will look something like

    var r:RegExp=/Minimum = ([\d\.]+)ms\, Maximum = ([\d\.]+)ms\, Average = ([\d\.]+)ms/i;
    
    //Then, you execute this on your result string
    var arr:Array=r.exec(result);
    
    //Then check if the result matched your regex
    if(arr != null) {
        var min:int=arr[1];
        var max:int=arr[2];
        var avg:int=arr[3];
    } else {
        trace("invalid result from ping");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any way two threads within the same process can communicate without knowing
Found this question that explained a way to communicate between layers. However there is
Is there way that I can read the file from remote server using fopen
Is there a way to return a random row from a table using LINQToSQL?
I was wondering is there an easy way to communicate between iphones over the
I wish an easy way to communicate mathematical equations with gmail. There's a javascript
Is there a way to save a file in HDFS using MapR distribution of
Is there any way to communicate with a Canon EOS 5D Mark II (or
Is there any way to communicate between my .exe application and Firefox? Because, I
Is there a way to communicate between Zend Modules as stated below? I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.